Spaces:
Sleeping
Sleeping
File size: 349 Bytes
fa9b83a 27c2ab8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """Server entrypoint required by multi-mode validator."""
import os
import uvicorn
from root.server import app
def main() -> None:
"""Run the FastAPI app with validator-friendly defaults."""
port = int(os.environ.get("PORT", "7860"))
uvicorn.run("server.app:app", host="0.0.0.0", port=port)
if __name__ == "__main__":
main()
|