Spaces:
Running
Running
# gunicorn.conf.py | |
import os | |
worker_class = 'uvicorn.workers.UvicornWorker' | |
# Can set back to 2 or more if desired, now that init is in lifespan | |
workers = int(os.environ.get('GUNICORN_WORKERS', '1')) | |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}" | |
# timeout = 120 # Optional |