Spaces:
Sleeping
Sleeping
File size: 331 Bytes
3468bd9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | """Console script entrypoint for serving the FastAPI app."""
from __future__ import annotations
import os
import uvicorn
def main() -> None:
host = os.getenv("HOST", "0.0.0.0")
port = int(os.getenv("PORT", "7860"))
uvicorn.run("app:app", host=host, port=port, reload=False)
if __name__ == "__main__":
main()
|