Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1650,7 +1650,7 @@ def process_image(image_input):
|
|
1650 |
|
1651 |
filename_txt = generate_filename(image_response, "png")
|
1652 |
save_image(image_input, filename_txt) # Save copy of image with new filename
|
1653 |
-
st.rerun() # rerun to show new image and new markdown files
|
1654 |
|
1655 |
return image_response
|
1656 |
|
@@ -1768,7 +1768,7 @@ def main():
|
|
1768 |
elif option == "Image":
|
1769 |
image_input = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
1770 |
image_response = process_image(image_input)
|
1771 |
-
st.markdown(image_response)
|
1772 |
elif option == "Audio":
|
1773 |
audio_input = st.file_uploader("Upload an audio file", type=["mp3", "wav"])
|
1774 |
process_audio(audio_input)
|
|
|
1650 |
|
1651 |
filename_txt = generate_filename(image_response, "png")
|
1652 |
save_image(image_input, filename_txt) # Save copy of image with new filename
|
1653 |
+
#st.rerun() # rerun to show new image and new markdown files
|
1654 |
|
1655 |
return image_response
|
1656 |
|
|
|
1768 |
elif option == "Image":
|
1769 |
image_input = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
1770 |
image_response = process_image(image_input)
|
1771 |
+
#st.markdown(image_response)
|
1772 |
elif option == "Audio":
|
1773 |
audio_input = st.file_uploader("Upload an audio file", type=["mp3", "wav"])
|
1774 |
process_audio(audio_input)
|