Spaces:
Paused
Paused
File size: 413 Bytes
a348131 ba98117 a348131 ba98117 a348131 ba98117 a348131 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import uvicorn
from fastapi import FastAPI
from app.core.config import settings
from app.core.lifecycle import lifespan
from app.api.routers import chat
app = FastAPI(lifespan=lifespan)
app.include_router(chat.router, tags=["chat"])
@app.get("/health")
async def health():
return {"status": "ok"}
if __name__ == "__main__":
uvicorn.run(app, host=settings.HOST, port=settings.PORT)
|