marquesafonso commited on
Commit
f52fdd9
·
1 Parent(s): 9f53601

fix dockerfile user issue (4)

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. main.py +1 -1
Dockerfile CHANGED
@@ -17,6 +17,6 @@ RUN pip install --no-cache-dir -r requirements.txt
17
  # Make port 8000 available to the world outside this container
18
  EXPOSE 7680
19
 
20
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
21
 
22
  USER 1001
 
17
  # Make port 8000 available to the world outside this container
18
  EXPOSE 7680
19
 
20
+ CMD ["uvicorn", "main:app", "--host", "https://huggingface.co/spaces/marquesafonso/multilang-asr-subtitler", "--port", "7860"]
21
 
22
  USER 1001
main.py CHANGED
@@ -115,4 +115,4 @@ async def process_video_api(video_file: MP4Video = Depends(),
115
  raise HTTPException(status_code=500, detail=str(e))
116
 
117
  if __name__ == "__main__":
118
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
115
  raise HTTPException(status_code=500, detail=str(e))
116
 
117
  if __name__ == "__main__":
118
+ uvicorn.run(app, host="0.0.0.0", port=7860)