Spaces:
Sleeping
Sleeping
Commit ·
0c26744
1
Parent(s): 8b5e739
Clean deployment to new Space
Browse files
app.py
CHANGED
|
@@ -10,7 +10,10 @@ app = FastAPI(title="Fish Species Classification API")
|
|
| 10 |
# --- CORS Configuration ---
|
| 11 |
app.add_middleware(
|
| 12 |
CORSMiddleware,
|
| 13 |
-
allow_origins=[
|
|
|
|
|
|
|
|
|
|
| 14 |
allow_credentials=True,
|
| 15 |
allow_methods=["*"],
|
| 16 |
allow_headers=["*"],
|
|
|
|
| 10 |
# --- CORS Configuration ---
|
| 11 |
app.add_middleware(
|
| 12 |
CORSMiddleware,
|
| 13 |
+
allow_origins=[
|
| 14 |
+
"http://localhost:5173", # For your local frontend development
|
| 15 |
+
"https://aqua-ai-omega.vercel.app" # MODIFIED: Add your Vercel URL here
|
| 16 |
+
],
|
| 17 |
allow_credentials=True,
|
| 18 |
allow_methods=["*"],
|
| 19 |
allow_headers=["*"],
|