Spaces:
Sleeping
Sleeping
Update good_progress.py
Browse files- good_progress.py +7 -0
good_progress.py
CHANGED
|
@@ -591,6 +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 |
st.success("Podcast generated successfully! You can listen to it above.")
|
| 595 |
else:
|
| 596 |
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)
|