fashion_backend / app.py
Liyew's picture
Update app.py
1a2fd99 verified
raw
history blame contribute delete
377 Bytes
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)