Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 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)
|