sidmanale643 commited on
Commit
7424d37
·
verified ·
1 Parent(s): 89facc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -451,12 +451,11 @@ if st.button("Fetch Sentiment Data"):
451
  st.subheader("Final Report")
452
  st.write(output_dict.get("final_report"))
453
 
454
- if st.button("Generate Speech"):
455
- with st.spinner("Generating audio..."):
456
- audio_data = output_dict["audio_text"]
457
 
458
- if audio_data:
459
- st.audio(audio_data, format="audio/mp3")
460
 
461
 
462
  except requests.exceptions.RequestException as e:
 
451
  st.subheader("Final Report")
452
  st.write(output_dict.get("final_report"))
453
 
454
+ with st.spinner("Generating audio..."):
455
+ audio_data = output_dict["audio_text"]
 
456
 
457
+ if audio_data:
458
+ st.audio(audio_data, format="audio/mp3")
459
 
460
 
461
  except requests.exceptions.RequestException as e: