Skip to content

Commit b2a0669

Browse files
committed
Update
1 parent a9e15f3 commit b2a0669

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ RUN pip install --upgrade accelerate
1010
RUN pip uninstall -y transformers accelerate
1111
RUN pip install transformers accelerate
1212

13+
EXPOSE 8080
14+
1315
CMD ["python3", "app.py"]
1416

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ async def predict_route(text):
4040

4141

4242
if __name__ == "__main__":
43-
uvicorn.run(app, host="127.0.0.1", port=8080)
43+
uvicorn.run(app, host="0.0.0.0", port=8080)

0 commit comments

Comments
 (0)