File size: 641 Bytes
15d9f81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""

server/app.py — DebateFloor server entry point.



This module is the deployment boundary. All business logic lives in app/.

External clients and evaluation scripts interact via HTTP (/reset, /step, /state)

and should never import app/ internals directly.

"""
import uvicorn
from app.main import app  # noqa: F401 — re-exported for uvicorn discovery

__all__ = ["app"]


def serve(host: str = "0.0.0.0", port: int = 7860, workers: int = 1) -> None:
    """Start the DebateFloor environment server."""
    uvicorn.run("server.app:app", host=host, port=port, workers=workers)


if __name__ == "__main__":
    serve()