Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ logger = logging.getLogger("NeuTTS-API")
|
|
| 35 |
# Explicitly use CPU as per Dockerfile and Hugging Face free tier compatibility
|
| 36 |
DEVICE = "cpu"
|
| 37 |
# Configure Max Workers for concurrent synthesis threads (1-2 is safe for CPU-only)
|
| 38 |
-
MAX_WORKERS =
|
| 39 |
tts_executor = ThreadPoolExecutor(max_workers=MAX_WORKERS)
|
| 40 |
SAMPLE_RATE = 24000
|
| 41 |
CLEANUP_THRESHOLD = 300 # 1 hour in seconds
|
|
|
|
| 35 |
# Explicitly use CPU as per Dockerfile and Hugging Face free tier compatibility
|
| 36 |
DEVICE = "cpu"
|
| 37 |
# Configure Max Workers for concurrent synthesis threads (1-2 is safe for CPU-only)
|
| 38 |
+
MAX_WORKERS = 2
|
| 39 |
tts_executor = ThreadPoolExecutor(max_workers=MAX_WORKERS)
|
| 40 |
SAMPLE_RATE = 24000
|
| 41 |
CLEANUP_THRESHOLD = 300 # 1 hour in seconds
|