Manveer commited on
Commit
5f9d93f
·
1 Parent(s): 9e74d40

Add application file 5

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -5
  2. app.py +1 -1
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
- FROM python:3.13
2
 
3
- COPY . .
 
4
 
5
- WORKDIR /
 
 
 
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
 
9
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10
2
 
3
+ WORKDIR /app
4
+ COPY . /app
5
 
6
+ RUN pip install --no-cache-dir fastapi uvicorn pandas numpy torch sentence-transformers scikit-learn
7
+
8
+ EXPOSE 7860
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
10
 
 
11
 
 
app.py CHANGED
@@ -413,4 +413,4 @@ async def predict_gradio_compatible(request: Dict):
413
  raise HTTPException(status_code=500, detail=str(e))
414
 
415
  if __name__ == "__main__":
416
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
413
  raise HTTPException(status_code=500, detail=str(e))
414
 
415
  if __name__ == "__main__":
416
+ uvicorn.run(app, host="0.0.0.0", port=7860)