DrishtiSharma commited on
Commit
5ce5f4b
·
verified ·
1 Parent(s): 4aa95e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -670,13 +670,13 @@ if st.session_state.rag_system.document_summary:
670
  if audio_path:
671
  st.text_area("Generated Podcast Script", script, height=200)
672
  st.audio(audio_path, format="audio/mp3")
673
- with open(audio_path, "rb") as audio_file:
674
- st.download_button(
675
- label="Download Podcast (.mp3)",
676
- data=audio_file,
677
- file_name="podcast.mp3",
678
- mime="audio/mpeg"
679
- )
680
  st.success("Podcast generated successfully! You can listen to it above.")
681
  else:
682
  st.error(script)
 
670
  if audio_path:
671
  st.text_area("Generated Podcast Script", script, height=200)
672
  st.audio(audio_path, format="audio/mp3")
673
+ with open(audio_path, "rb") as audio_file:
674
+ st.download_button(
675
+ label="Download Podcast (.mp3)",
676
+ data=audio_file,
677
+ file_name="podcast.mp3",
678
+ mime="audio/mpeg"
679
+ )
680
  st.success("Podcast generated successfully! You can listen to it above.")
681
  else:
682
  st.error(script)