Spaces:
Sleeping
Sleeping
Upload 2 files
Browse filesUse gunicorn as WSGI server
- Dockerfile +1 -1
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -10,4 +10,4 @@ COPY . .
|
|
| 10 |
ENV PORT=7860
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
-
CMD ["
|
|
|
|
| 10 |
ENV PORT=7860
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--preload", "--timeout", "120", "bert_api:app"]
|
requirements.txt
CHANGED
|
@@ -4,3 +4,4 @@ transformers
|
|
| 4 |
torch
|
| 5 |
huggingface_hub
|
| 6 |
python-dotenv
|
|
|
|
|
|
| 4 |
torch
|
| 5 |
huggingface_hub
|
| 6 |
python-dotenv
|
| 7 |
+
gunicorn
|