Skip to content

Commit

Permalink
Update host IP in frontend.py to allow access from any IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
PGrabinski committed Jun 3, 2024
1 parent 33245c7 commit 89bbc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def classify_image(image):
)

def run_api():
uvicorn.run("api.api:app", host="127.0.0.1", port=8000)
uvicorn.run("api.api:app", host="0.0.0.0", port=8000)

api_service = threading.Thread(target=run_api)
api_service.start()
Expand Down

0 comments on commit 89bbc82

Please sign in to comment.