Spaces:
Running
Running
# gunicorn.conf.py | |
import os | |
worker_class = 'uvicorn.workers.UvicornWorker' | |
workers = int(os.environ.get('GUNICORN_WORKERS', '1')) | |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}" | |
# Timeout should be longer than the longest expected API call (e.g., OpenRouter 180s) | |
timeout = 200 # 200 seconds | |
# loglevel = 'info' |