navindusa commited on
Commit
fc4d252
·
1 Parent(s): e5124db

Update Dockerfile to use uvicorn for running the application and modify requirements to exclude fastapi extras

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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 fastapi run --reload --host=0.0.0.0 --port=7860
 
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[standard]
2
  uvicorn[standard]
3
  transformers
4
  torch
 
1
+ fastapi
2
  uvicorn[standard]
3
  transformers
4
  torch