Spaces:
Configuration error
Configuration error
Download app/main.py from Samidha21/emosaic-backend: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/Samidha21/emosaic-backend/resolve/main/app/main.py
- Command line
-
hf download hf://spaces/Samidha21/emosaic-backend/app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/Samidha21/emosaic-backend/resolve/main/app/main.py
340 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| from app.routes import router | |
| app = FastAPI( | |
| title="Emoji Mosaic API", | |
| version="1.0" | |
| ) | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["http://localhost:5173"], | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| app.include_router(router) |