Spaces:
Runtime error
Runtime error
Use uvicorn for Space deployment; pin model filename
Browse files
app.py
CHANGED
|
@@ -93,4 +93,11 @@ def reset_game() -> dict:
|
|
| 93 |
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
| 96 |
+
import os
|
| 97 |
+
|
| 98 |
+
import uvicorn
|
| 99 |
+
uvicorn.run(
|
| 100 |
+
app,
|
| 101 |
+
host="0.0.0.0",
|
| 102 |
+
port=int(os.environ.get("PORT", "7860")),
|
| 103 |
+
)
|