Upload server/app.py with huggingface_hub
Browse files- server/app.py +2 -2
server/app.py
CHANGED
|
@@ -276,10 +276,10 @@ def delete_session(session_id: str) -> dict:
|
|
| 276 |
|
| 277 |
def main() -> None:
|
| 278 |
host = os.getenv("HOST", "0.0.0.0")
|
| 279 |
-
port = int(os.getenv("PORT", "
|
| 280 |
# Use the in-process app object so direct execution via python server/app.py works.
|
| 281 |
uvicorn.run(app, host=host, port=port, reload=False)
|
| 282 |
|
| 283 |
|
| 284 |
if __name__ == "__main__":
|
| 285 |
-
main()
|
|
|
|
| 276 |
|
| 277 |
def main() -> None:
|
| 278 |
host = os.getenv("HOST", "0.0.0.0")
|
| 279 |
+
port = int(os.getenv("PORT", "7860"))
|
| 280 |
# Use the in-process app object so direct execution via python server/app.py works.
|
| 281 |
uvicorn.run(app, host=host, port=port, reload=False)
|
| 282 |
|
| 283 |
|
| 284 |
if __name__ == "__main__":
|
| 285 |
+
main()
|