Spaces:
Paused
Paused
File size: 282 Bytes
fc10439 |
1 2 3 4 5 6 7 8 |
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.api.predict import router as predict_router
app = FastAPI()
app.add_middleware(CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"])
app.include_router(predict_router)
|