Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,12 +26,12 @@ def process_pdf_to_podcast(pdf_file):
|
|
| 26 |
transcript_path = os.path.join(session_dir, "data.pkl")
|
| 27 |
tts_ready_path = os.path.join(session_dir, "podcast_ready_data.pkl")
|
| 28 |
audio_output_path = os.path.join(session_dir, "final_podcast_audio.mp3")
|
| 29 |
-
text_model= "
|
| 30 |
|
| 31 |
# Step 1: Extract Text from PDF
|
| 32 |
shutil.copy(pdf_file, pdf_path)
|
| 33 |
|
| 34 |
-
extractor = PDFTextExtractor(pdf_path,clean_text_path,text_model)
|
| 35 |
clean_text_path = extractor.clean_and_save_text()
|
| 36 |
|
| 37 |
# Display a preview of extracted text
|
|
|
|
| 26 |
transcript_path = os.path.join(session_dir, "data.pkl")
|
| 27 |
tts_ready_path = os.path.join(session_dir, "podcast_ready_data.pkl")
|
| 28 |
audio_output_path = os.path.join(session_dir, "final_podcast_audio.mp3")
|
| 29 |
+
text_model= "llama3-70b-8192"
|
| 30 |
|
| 31 |
# Step 1: Extract Text from PDF
|
| 32 |
shutil.copy(pdf_file, pdf_path)
|
| 33 |
|
| 34 |
+
extractor = PDFTextExtractor(pdf_path,clean_text_path,transcript_path,tts_ready_path,text_model)
|
| 35 |
clean_text_path = extractor.clean_and_save_text()
|
| 36 |
|
| 37 |
# Display a preview of extracted text
|