fmab777 commited on
Commit
3753286
·
verified ·
1 Parent(s): c231b99

Update gunicorn.conf.py

Browse files
Files changed (1) hide show
  1. gunicorn.conf.py +3 -4
gunicorn.conf.py CHANGED
@@ -3,9 +3,8 @@ import os
3
 
4
  worker_class = 'uvicorn.workers.UvicornWorker'
5
 
6
- # --- TEMPORARILY SET TO 1 FOR DEBUGGING ---
7
- workers = int(os.environ.get('GUNICORN_WORKERS', '1')) # Use 1 worker first
8
- # ---
9
 
10
  bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
11
- # timeout = 120 # Optional: Increase if needed
 
3
 
4
  worker_class = 'uvicorn.workers.UvicornWorker'
5
 
6
+ # Can set back to 2 or more if desired, now that init is in lifespan
7
+ workers = int(os.environ.get('GUNICORN_WORKERS', '2'))
 
8
 
9
  bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
10
+ # timeout = 120 # Optional