Duy commited on
Commit
780c453
·
1 Parent(s): f220f35

change port

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. api.py +1 -1
Dockerfile CHANGED
@@ -15,7 +15,7 @@ COPY . /app
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Make port available to the world outside this container
18
- EXPOSE 8001
19
 
20
  # Run your FastAPI app
21
  CMD ["python", "api.py"]
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Make port available to the world outside this container
18
+ EXPOSE 7860
19
 
20
  # Run your FastAPI app
21
  CMD ["python", "api.py"]
api.py CHANGED
@@ -51,4 +51,4 @@ async def predict(file: UploadFile):
51
 
52
  if __name__ == "__main__":
53
  import uvicorn
54
- uvicorn.run(api, host ="0.0.0.0" ,port=8001)
 
51
 
52
  if __name__ == "__main__":
53
  import uvicorn
54
+ uvicorn.run(api, host ="0.0.0.0" ,port=7860)