Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -550,6 +550,6 @@ if __name__ == "__main__":
|
|
| 550 |
else:
|
| 551 |
local_port = int(os.getenv("PORT", "8000"))
|
| 552 |
logger.info(f"Running Uvicorn locally on http://127.0.0.1:{local_port}")
|
| 553 |
-
uvicorn.run(app, host="
|
| 554 |
except Exception as e:
|
| 555 |
logger.error(f"Failed to start server: {e}", exc_info=True)
|
|
|
|
| 550 |
else:
|
| 551 |
local_port = int(os.getenv("PORT", "8000"))
|
| 552 |
logger.info(f"Running Uvicorn locally on http://127.0.0.1:{local_port}")
|
| 553 |
+
uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 7860)))
|
| 554 |
except Exception as e:
|
| 555 |
logger.error(f"Failed to start server: {e}", exc_info=True)
|