Spaces:
Sleeping
Sleeping
update api
Browse files
api.py
CHANGED
|
@@ -93,7 +93,7 @@ async def tts_api(req: TTSRequest):
|
|
| 93 |
raise HTTPException(status_code=404, detail=f"Index file not found: {index_path}")
|
| 94 |
|
| 95 |
# Path output
|
| 96 |
-
output_dir = "/tmp/tts"
|
| 97 |
os.makedirs(output_dir, exist_ok=True)
|
| 98 |
limit_tts_files(output_dir, max_files=10)
|
| 99 |
tts_wav = f"{output_dir}/{uuid4().hex}_tts.wav"
|
|
|
|
| 93 |
raise HTTPException(status_code=404, detail=f"Index file not found: {index_path}")
|
| 94 |
|
| 95 |
# Path output
|
| 96 |
+
output_dir = "/app/tmp/tts"
|
| 97 |
os.makedirs(output_dir, exist_ok=True)
|
| 98 |
limit_tts_files(output_dir, max_files=10)
|
| 99 |
tts_wav = f"{output_dir}/{uuid4().hex}_tts.wav"
|