1 parent a9e15f3 commit b2a0669Copy full SHA for b2a0669
2 files changed
Dockerfile
@@ -10,5 +10,7 @@ RUN pip install --upgrade accelerate
10
RUN pip uninstall -y transformers accelerate
11
RUN pip install transformers accelerate
12
13
+EXPOSE 8080
14
+
15
CMD ["python3", "app.py"]
16
app.py
@@ -40,4 +40,4 @@ async def predict_route(text):
40
41
42
if __name__ == "__main__":
43
- uvicorn.run(app, host="127.0.0.1", port=8080)
+ uvicorn.run(app, host="0.0.0.0", port=8080)
0 commit comments