DrishtiSharma commited on
Commit
ff88032
·
verified ·
1 Parent(s): 1a79acc

Update good_progress.py

Browse files
Files changed (1) hide show
  1. good_progress.py +7 -7
good_progress.py CHANGED
@@ -591,13 +591,13 @@ if st.session_state.rag_system.document_summary:
591
  if audio_path:
592
  st.text_area("Generated Podcast Script", script, height=200)
593
  st.audio(audio_path, format="audio/mp3")
594
- with open(audio_path, "rb") as audio_file:
595
- st.download_button(
596
- label="Download Podcast (.mp3)",
597
- data=audio_file,
598
- file_name="podcast.mp3",
599
- mime="audio/mpeg"
600
- )
601
  st.success("Podcast generated successfully! You can listen to it above.")
602
  else:
603
  st.error(script)
 
591
  if audio_path:
592
  st.text_area("Generated Podcast Script", script, height=200)
593
  st.audio(audio_path, format="audio/mp3")
594
+ with open(audio_path, "rb") as audio_file:
595
+ st.download_button(
596
+ label="Download Podcast (.mp3)",
597
+ data=audio_file,
598
+ file_name="podcast.mp3",
599
+ mime="audio/mpeg"
600
+ )
601
  st.success("Podcast generated successfully! You can listen to it above.")
602
  else:
603
  st.error(script)