eaglelandsonce commited on
Commit
bb31096
·
verified ·
1 Parent(s): c3e7456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- audio, audio_error = generate_audio(image_text_output)
474
 
475
- if audio_error:
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