Prathamesh1420 commited on
Commit
99d7813
·
verified ·
1 Parent(s): da6e131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -66,4 +66,6 @@ async def predict(
66
  if __name__ == "__main__":
67
  import uvicorn
68
 
69
- uvicorn.run(app, host="127.0.0.1", port=8002)
 
 
 
66
  if __name__ == "__main__":
67
  import uvicorn
68
 
69
+
70
+ port = int(os.environ.get("PORT", 8000)) # Default to 8000 if PORT is not set
71
+ uvicorn.run(app, host="0.0.0.0", port=port)