Update app.py
Browse files
app.py
CHANGED
@@ -470,12 +470,9 @@ with tab3:
|
|
470 |
st.header("Image Details")
|
471 |
image_text_output = analyze_image(st.session_state['image_paths'][image_index])
|
472 |
st.write(image_text_output)
|
473 |
-
|
474 |
|
475 |
-
|
476 |
-
st.error(audio_error)
|
477 |
-
else:
|
478 |
-
st.audio(audio, format='audio/wav')
|
479 |
|
480 |
|
481 |
# Button for actions related to the selected image
|
|
|
470 |
st.header("Image Details")
|
471 |
image_text_output = analyze_image(st.session_state['image_paths'][image_index])
|
472 |
st.write(image_text_output)
|
473 |
+
text_audio = generate_audio(image_text_output)
|
474 |
|
475 |
+
st.audio(text_audio, format='audio/wav')
|
|
|
|
|
|
|
476 |
|
477 |
|
478 |
# Button for actions related to the selected image
|