Spaces:
Running
Running
Update gunicorn.conf.py
Browse files- gunicorn.conf.py +3 -5
gunicorn.conf.py
CHANGED
@@ -5,9 +5,7 @@ worker_class = 'uvicorn.workers.UvicornWorker'
|
|
5 |
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
|
6 |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
-
# Use 200 seconds here. Adjust if needed.
|
11 |
-
timeout = 200
|
12 |
|
13 |
-
# loglevel = 'info'
|
|
|
5 |
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
|
6 |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
|
7 |
|
8 |
+
# Timeout should be longer than the longest expected API call (e.g., OpenRouter 180s)
|
9 |
+
timeout = 200 # 200 seconds
|
|
|
|
|
10 |
|
11 |
+
# loglevel = 'info'
|