Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,7 +313,7 @@ def inference_by_model(text: str, audio_file: str, save_path: str) -> str:
|
|
| 313 |
import asyncio
|
| 314 |
from pathlib import Path
|
| 315 |
|
| 316 |
-
async def
|
| 317 |
"""
|
| 318 |
Generates audio files for the story while overlapping GPU inference and disk writes.
|
| 319 |
max_concurrent_gpu: semaphore to limit simultaneous GPU usage (1 if GPU is the bottleneck)
|
|
|
|
| 313 |
import asyncio
|
| 314 |
from pathlib import Path
|
| 315 |
|
| 316 |
+
async def generate_story_audios(story: StoryCreationDTO, base_output: str, max_concurrent_gpu: int = 1):
|
| 317 |
"""
|
| 318 |
Generates audio files for the story while overlapping GPU inference and disk writes.
|
| 319 |
max_concurrent_gpu: semaphore to limit simultaneous GPU usage (1 if GPU is the bottleneck)
|