Spaces:
Runtime error
Runtime error
Commit
·
498b578
1
Parent(s):
db5664e
fixing pydantic v5
Browse files- main/routes.py +1 -1
main/routes.py
CHANGED
|
@@ -17,7 +17,7 @@ api = None
|
|
| 17 |
def init_router(config: dict):
|
| 18 |
"""Initialize router with config and Inference API instance"""
|
| 19 |
global api
|
| 20 |
-
api = InferenceApi(
|
| 21 |
logger.info("Router initialized with Inference API instance")
|
| 22 |
|
| 23 |
@router.post("/generate")
|
|
|
|
| 17 |
def init_router(config: dict):
|
| 18 |
"""Initialize router with config and Inference API instance"""
|
| 19 |
global api
|
| 20 |
+
api = InferenceApi()
|
| 21 |
logger.info("Router initialized with Inference API instance")
|
| 22 |
|
| 23 |
@router.post("/generate")
|