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