Spaces:
Sleeping
Sleeping
File size: 429 Bytes
9c4c212 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from fastapi import FastAPI
from src.app.api import routes
import uvicorn
import os
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
app = FastAPI(title="Enterprise RAG Search API")
app.include_router(routes.router, prefix="/api/v1")
@app.get("/health")
def health():
return {"status": "ok"}
if __name__ == "__main__":
uvicorn.run("src.app.main:app", host="0.0.0.0", port=8000, reload=True)
|