Spaces:
Sleeping
Sleeping
fix: dockerfile to allow websockets
Browse files- Dockerfile +1 -1
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -19,4 +19,4 @@ COPY . .
|
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
# Starting the server. 0.0.0.0 accepts connections from anywhere, not just local.
|
| 22 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
# Starting the server. 0.0.0.0 accepts connections from anywhere, not just local.
|
| 22 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--ws", "websockets"]
|
requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
fastapi
|
| 2 |
uvicorn
|
| 3 |
gunicorn
|
|
|
|
| 4 |
|
| 5 |
ultralytics
|
| 6 |
|
|
|
|
| 1 |
fastapi
|
| 2 |
uvicorn
|
| 3 |
gunicorn
|
| 4 |
+
websockets
|
| 5 |
|
| 6 |
ultralytics
|
| 7 |
|