Spaces:
Running on Zero
Running on Zero
Commit ·
7f24dd5
1
Parent(s): ab69a60
Fix all FastAPI startup handlers for ZeroGPU
Browse files- backend.py +2 -2
backend.py
CHANGED
|
@@ -126,8 +126,8 @@ def verify_grounding_specialist_on_startup() -> None:
|
|
| 126 |
|
| 127 |
|
| 128 |
app.on_event("startup")(load_optional_sve_on_startup)
|
| 129 |
-
app.
|
| 130 |
-
app.
|
| 131 |
CORS_ORIGINS = [origin.strip() for origin in os.getenv(
|
| 132 |
"CORS_ORIGINS",
|
| 133 |
"http://127.0.0.1:3000,http://localhost:3000,http://127.0.0.1:8520,http://localhost:8520",
|
|
|
|
| 126 |
|
| 127 |
|
| 128 |
app.on_event("startup")(load_optional_sve_on_startup)
|
| 129 |
+
app.on_event("startup")(load_rsvqa_specialist_on_startup)
|
| 130 |
+
app.on_event("startup")(verify_grounding_specialist_on_startup)
|
| 131 |
CORS_ORIGINS = [origin.strip() for origin in os.getenv(
|
| 132 |
"CORS_ORIGINS",
|
| 133 |
"http://127.0.0.1:3000,http://localhost:3000,http://127.0.0.1:8520,http://localhost:8520",
|