Spaces:
Sleeping
Sleeping
File size: 449 Bytes
529b5a7 73beff8 529b5a7 73beff8 529b5a7 73beff8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """CloudSense FastAPI application."""
import os
import uvicorn
from fastapi import FastAPI
from server.routes import router
app = FastAPI(title="CloudSense", version="1.0.0")
app.include_router(router)
def main() -> None:
"""Entry point for `server` console script and `python -m server.app`."""
port = int(os.getenv("PORT", "7860"))
uvicorn.run("server.app:app", host="0.0.0.0", port=port)
if __name__ == "__main__":
main()
|