RanM commited on
Commit
7101b19
·
verified ·
1 Parent(s): 3ff1077

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,5 +97,5 @@ async def predict(coref_request: CorefRequest):
97
  raise HTTPException(status_code=400, detail="Coreference resolution failed")
98
 
99
  if __name__ == "__main__":
100
- import uvicorn
101
- uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 7860)))
 
97
  raise HTTPException(status_code=400, detail="Coreference resolution failed")
98
 
99
  if __name__ == "__main__":
100
+ port = int(os.environ.get("PORT", 7860))
101
+ uvicorn.run(app, host="0.0.0.0", port=port)