siddhartharyaai commited on
Commit
205ee76
·
verified ·
1 Parent(s): 83cdfbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,6 +6,8 @@ import tempfile
6
  import pypdf
7
  from pydub import AudioSegment, effects
8
  import difflib
 
 
9
  from utils import (
10
  generate_script,
11
  generate_audio_mp3,
@@ -282,7 +284,7 @@ def main():
282
  st.text_area("Report Content", value=report_content, height=300)
283
 
284
  # Generate PDF and offer download
285
- #from utils import generate_report # No longer needed
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
@@ -306,6 +308,7 @@ def main():
306
 
307
  elif mode == "Generate Podcast":
308
  st.markdown("### Generate Podcast")
 
309
  research_topic_input = st.text_input("Enter research topic for the podcast (or use a generated report):")
310
  tone = st.radio("Tone", ["Casual", "Formal", "Humorous", "Youthful"], index=0)
311
  length_minutes = st.slider("Podcast Length (in minutes)", 1, 60, 3)
 
6
  import pypdf
7
  from pydub import AudioSegment, effects
8
  import difflib
9
+
10
+ #CORRECTED IMPORT
11
  from utils import (
12
  generate_script,
13
  generate_audio_mp3,
 
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
 
308
 
309
  elif mode == "Generate Podcast":
310
  st.markdown("### Generate Podcast")
311
+
312
  research_topic_input = st.text_input("Enter research topic for the podcast (or use a generated report):")
313
  tone = st.radio("Tone", ["Casual", "Formal", "Humorous", "Youthful"], index=0)
314
  length_minutes = st.slider("Podcast Length (in minutes)", 1, 60, 3)