Spaces:
Runtime error
Runtime error
update cors
Browse files- backend/main.py +2 -2
backend/main.py
CHANGED
|
@@ -6,8 +6,8 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 6 |
app = FastAPI(title="Gen AI Email Processing API") # This creates the FastAPI app instance
|
| 7 |
|
| 8 |
origins = [
|
| 9 |
-
"http://localhost:4200"
|
| 10 |
-
"https://vivek0912-genaiemailclassification.hf.space", # Hugging Face frontend
|
| 11 |
]
|
| 12 |
|
| 13 |
#router = APIRouter()
|
|
|
|
| 6 |
app = FastAPI(title="Gen AI Email Processing API") # This creates the FastAPI app instance
|
| 7 |
|
| 8 |
origins = [
|
| 9 |
+
"http://localhost:4200" # Angular frontend (Local)
|
| 10 |
+
# "https://vivek0912-genaiemailclassification.hf.space", # Hugging Face frontend
|
| 11 |
]
|
| 12 |
|
| 13 |
#router = APIRouter()
|