Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
101 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
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)
|