Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +3 -3
backend/main.py
CHANGED
|
@@ -43,10 +43,10 @@ print("Groq API configured successfully.")
|
|
| 43 |
# CORS configuration (allows the frontend application to communicate with the backend)
|
| 44 |
app.add_middleware(
|
| 45 |
CORSMiddleware,
|
| 46 |
-
allow_origins=["
|
| 47 |
allow_credentials=True,
|
| 48 |
-
allow_methods=["
|
| 49 |
-
allow_headers=["
|
| 50 |
)
|
| 51 |
|
| 52 |
# 1. Data Models (Expected JSON payloads from the frontend client)
|
|
|
|
| 43 |
# CORS configuration (allows the frontend application to communicate with the backend)
|
| 44 |
app.add_middleware(
|
| 45 |
CORSMiddleware,
|
| 46 |
+
allow_origins=["https://data-augmentation-sigma.vercel.app"],
|
| 47 |
allow_credentials=True,
|
| 48 |
+
allow_methods=["https://data-augmentation-sigma.vercel.app"],
|
| 49 |
+
allow_headers=["https://data-augmentation-sigma.vercel.app"],
|
| 50 |
)
|
| 51 |
|
| 52 |
# 1. Data Models (Expected JSON payloads from the frontend client)
|