Amogh1221 commited on
Commit
b65c302
·
verified ·
1 Parent(s): e0bb818

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -31,5 +31,8 @@ COPY --chown=user:user . /app/
31
  # Expose port 7860 (Hugging Face requirement)
32
  EXPOSE 7860
33
 
34
- # Start the FastAPI application with multiple workers for production
35
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]
 
 
 
 
31
  # Expose port 7860 (Hugging Face requirement)
32
  EXPOSE 7860
33
 
34
+ # Start the FastAPI application with 2 workers.
35
+ # Each worker loads ~1.5GB of ML models (SenseVoice + BERT + VAD).
36
+ # With 16GB RAM this is safe (~3GB total), and 2 workers provides real
37
+ # concurrency benefit for CPU-bound STT when multiple users transcribe simultaneously.
38
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2", "--timeout-keep-alive", "75"]