Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
from outfit import router | |
import uvicorn | |
app = FastAPI( | |
title="Fashion API", | |
docs_url="/docs", | |
redoc_url="/redoc" | |
) | |
app.include_router(router) | |
def root(): | |
return {"message": "FastAPI is running!"} | |
# This makes the app start in Spaces | |
if __name__ == "__main__": | |
uvicorn.run("app:app", host="0.0.0.0", port=7860) | |