Ai_creator_framework / FastAPI Entry
sky-meilin's picture
Create FastAPI Entry
d8f9c41 verified
Raw
History Blame Contribute Delete
373 Bytes
from fastapi import FastAPI
from backend.api.routes_execution import router as exec_router
from backend.api.routes_stream import router as ws_router
app = FastAPI(title="SkyAI Execution Space")
app.include_router(exec_router, prefix="/api")
app.include_router(ws_router, prefix="/ws")
@app.get("/")
def home():
return {"status": "SkyAI running on Hugging Face 🚀"}