Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,6 @@ def generate_podcast(
|
|
105 |
if not text:
|
106 |
return None, "Please generate a research report first, or enter a topic."
|
107 |
|
108 |
-
|
109 |
extra_instructions = []
|
110 |
if host_name or guest_name:
|
111 |
host_line = f"Host: {host_name or 'Jane'} - {host_desc or 'a curious host'}."
|
@@ -284,7 +283,6 @@ def main():
|
|
284 |
st.text_area("Report Content", value=report_content, height=300)
|
285 |
|
286 |
# Generate PDF and offer download
|
287 |
-
#from utils import generate_report #No longer need to import here
|
288 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmpfile:
|
289 |
pdf_path = tmpfile.name
|
290 |
generate_report(report_content, filename=pdf_path) # Generate PDF
|
@@ -430,7 +428,6 @@ def main():
|
|
430 |
st.session_state["transcript_original"],
|
431 |
edited_text
|
432 |
)
|
433 |
-
|
434 |
st.markdown("### **Edited Transcript Highlights**", unsafe_allow_html=True)
|
435 |
st.markdown(highlighted_transcript, unsafe_allow_html=True)
|
436 |
|
@@ -520,4 +517,4 @@ def main():
|
|
520 |
st.markdown("<footer>©2025 MyPod. All rights reserved.</footer>", unsafe_allow_html=True)
|
521 |
|
522 |
if __name__ == "__main__":
|
523 |
-
main()
|
|
|
105 |
if not text:
|
106 |
return None, "Please generate a research report first, or enter a topic."
|
107 |
|
|
|
108 |
extra_instructions = []
|
109 |
if host_name or guest_name:
|
110 |
host_line = f"Host: {host_name or 'Jane'} - {host_desc or 'a curious host'}."
|
|
|
283 |
st.text_area("Report Content", value=report_content, height=300)
|
284 |
|
285 |
# Generate PDF and offer download
|
|
|
286 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmpfile:
|
287 |
pdf_path = tmpfile.name
|
288 |
generate_report(report_content, filename=pdf_path) # Generate PDF
|
|
|
428 |
st.session_state["transcript_original"],
|
429 |
edited_text
|
430 |
)
|
|
|
431 |
st.markdown("### **Edited Transcript Highlights**", unsafe_allow_html=True)
|
432 |
st.markdown(highlighted_transcript, unsafe_allow_html=True)
|
433 |
|
|
|
517 |
st.markdown("<footer>©2025 MyPod. All rights reserved.</footer>", unsafe_allow_html=True)
|
518 |
|
519 |
if __name__ == "__main__":
|
520 |
+
main()
|