telegram-summary-bot / gunicorn.conf.py
fmab777's picture
Update gunicorn.conf.py
7e7c7e6 verified
raw
history blame
380 Bytes
import os
worker_class = 'uvicorn.workers.UvicornWorker'
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
# Use the PORT environment variable set by Hugging Face or default
port = os.environ.get('PORT', '7860')
bind = f"0.0.0.0:{port}"
# Timeout should be longer than the longest expected API call (e.g., OpenRouter/Crawl4AI)
timeout = 200 # 200 seconds
loglevel = 'info'