yasserrmd commited on
Commit
534c98c
·
verified ·
1 Parent(s): 73108db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def process_pdf_to_podcast(pdf_file):
30
  # Step 1: Extract Text from PDF
31
  shutil.copy(pdf_file, pdf_path)
32
 
33
- extractor = PDFTextExtractor(pdf_path,clean_text_path,transcript_path,tts_ready_path,text_model)
34
  clean_text_path = extractor.clean_and_save_text()
35
 
36
  # Display a preview of extracted text
@@ -38,7 +38,7 @@ def process_pdf_to_podcast(pdf_file):
38
  text_preview = file.read(500)
39
 
40
  # Step 2: Generate Transcript
41
- processor = TranscriptProcessor(clean_text_path,text_model)
42
  transcript_path = processor.generate_transcript()
43
 
44
  # Load the generated transcript for preview
 
30
  # Step 1: Extract Text from PDF
31
  shutil.copy(pdf_file, pdf_path)
32
 
33
+ extractor = PDFTextExtractor(pdf_path,clean_text_path,text_model)
34
  clean_text_path = extractor.clean_and_save_text()
35
 
36
  # Display a preview of extracted text
 
38
  text_preview = file.read(500)
39
 
40
  # Step 2: Generate Transcript
41
+ processor = TranscriptProcessor(clean_text_path,transcript_path,tts_ready_path,text_model)
42
  transcript_path = processor.generate_transcript()
43
 
44
  # Load the generated transcript for preview