Spaces:
Sleeping
Sleeping
Update Dockerfile to use uvicorn for running the application and modify requirements to exclude fastapi extras
Browse files- Dockerfile +1 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -47,4 +47,4 @@ COPY --chown=appuser . $HOME/app
|
|
47 |
EXPOSE 7860
|
48 |
|
49 |
# Run the application.
|
50 |
-
CMD
|
|
|
47 |
EXPOSE 7860
|
48 |
|
49 |
# Run the application.
|
50 |
+
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
fastapi
|
2 |
uvicorn[standard]
|
3 |
transformers
|
4 |
torch
|
|
|
1 |
+
fastapi
|
2 |
uvicorn[standard]
|
3 |
transformers
|
4 |
torch
|