Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def create_temp_session_directory():
|
|
| 16 |
return tempfile.mkdtemp()
|
| 17 |
|
| 18 |
# Combined function to perform all steps sequentially
|
| 19 |
-
@spaces.GPU(duration=
|
| 20 |
def process_pdf_to_podcast(pdf_file):
|
| 21 |
|
| 22 |
session_dir = create_temp_session_directory()
|
|
@@ -64,7 +64,7 @@ def process_pdf_to_podcast(pdf_file):
|
|
| 64 |
|
| 65 |
|
| 66 |
# Final Step: Generate Audio after optional adjustments
|
| 67 |
-
@spaces.GPU(duration=
|
| 68 |
def generate_audio_from_modified_text(tts_ready_text,session_dir):
|
| 69 |
|
| 70 |
tts_ready_path = os.path.join(session_dir, "podcast_ready_data.pkl")
|
|
|
|
| 16 |
return tempfile.mkdtemp()
|
| 17 |
|
| 18 |
# Combined function to perform all steps sequentially
|
| 19 |
+
@spaces.GPU(duration=120)
|
| 20 |
def process_pdf_to_podcast(pdf_file):
|
| 21 |
|
| 22 |
session_dir = create_temp_session_directory()
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
# Final Step: Generate Audio after optional adjustments
|
| 67 |
+
@spaces.GPU(duration=300)
|
| 68 |
def generate_audio_from_modified_text(tts_ready_text,session_dir):
|
| 69 |
|
| 70 |
tts_ready_path = os.path.join(session_dir, "podcast_ready_data.pkl")
|