Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -11,8 +11,6 @@ import json
|
|
| 11 |
|
| 12 |
app = FastAPI(title="Deepcastle Engine API")
|
| 13 |
from contextlib import asynccontextmanager
|
| 14 |
-
|
| 15 |
-
# βββ Multiplaying / Challenge Manager ββββββββββββββββββββββββββββββββββββββββββ
|
| 16 |
class ConnectionManager:
|
| 17 |
def __init__(self):
|
| 18 |
# match_id -> list of websockets
|
|
@@ -507,5 +505,4 @@ async def analyze_game(request: AnalyzeRequest):
|
|
| 507 |
|
| 508 |
if __name__ == "__main__":
|
| 509 |
import uvicorn
|
| 510 |
-
# Hugging Face Spaces port is 7860
|
| 511 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 11 |
|
| 12 |
app = FastAPI(title="Deepcastle Engine API")
|
| 13 |
from contextlib import asynccontextmanager
|
|
|
|
|
|
|
| 14 |
class ConnectionManager:
|
| 15 |
def __init__(self):
|
| 16 |
# match_id -> list of websockets
|
|
|
|
| 505 |
|
| 506 |
if __name__ == "__main__":
|
| 507 |
import uvicorn
|
|
|
|
| 508 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|