Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import pickle
|
|
| 8 |
import os
|
| 9 |
import tempfile
|
| 10 |
import shutil
|
| 11 |
-
import spaces
|
| 12 |
|
| 13 |
|
| 14 |
|
|
@@ -16,7 +16,7 @@ def create_temp_session_directory():
|
|
| 16 |
return tempfile.mkdtemp()
|
| 17 |
|
| 18 |
# Combined function to perform all steps sequentially
|
| 19 |
-
|
| 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 |
-
|
| 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")
|
|
|
|
| 8 |
import os
|
| 9 |
import tempfile
|
| 10 |
import shutil
|
| 11 |
+
#import spaces
|
| 12 |
|
| 13 |
|
| 14 |
|
|
|
|
| 16 |
return tempfile.mkdtemp()
|
| 17 |
|
| 18 |
# Combined function to perform all steps sequentially
|
| 19 |
+
#@spaces.GPU
|
| 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
|
| 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")
|