Ravi Pandey commited on
Commit
050e095
1 Parent(s): e8b18ac

Docker deploy

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. caption_server.py +1 -1
Dockerfile CHANGED
@@ -16,4 +16,4 @@ COPY ./caption_server.py /code/caption_server.py
16
  COPY . .
17
 
18
  # Command to run your application
19
- CMD ["uvicorn", "caption_server:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]
 
16
  COPY . .
17
 
18
  # Command to run your application
19
+ CMD ["uvicorn", "caption_server:app", "--reload", "--host", "0.0.0.0", "--port", "7860"]
caption_server.py CHANGED
@@ -86,4 +86,4 @@ async def generate_caption_and_classify(request: Request):
86
  raise HTTPException(status_code=500, detail=str(e))
87
 
88
  if __name__ == "__main__":
89
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
86
  raise HTTPException(status_code=500, detail=str(e))
87
 
88
  if __name__ == "__main__":
89
+ uvicorn.run(app, host="0.0.0.0", port=7860)