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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -467,9 +467,15 @@ with tab3:
467
 
468
  with col1:
469
 
470
- st.write("Image Details")
471
  image_text_output = analyze_image(st.session_state['image_paths'][image_index])
472
  st.write(image_text_output)
 
 
 
 
 
 
473
 
474
 
475
  # Button for actions related to the selected image
 
467
 
468
  with col1:
469
 
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