Spaces:
Sleeping
Sleeping
File size: 377 Bytes
53013d9 918a345 24f0dda cd38583 1a2fd99 cd38583 53013d9 cd38583 1a2fd99 a70ed87 cd38583 |
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 outfit import router
import uvicorn
app = FastAPI(
title="Fashion API",
docs_url="/docs",
redoc_url="/redoc"
)
app.include_router(router)
@app.get("/")
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)
|