Rajhuggingface4253 commited on
Commit
b662d71
·
verified ·
1 Parent(s): 69ddef5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 3
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