Change read_root endpoint to a synchronous function for improved performance
Browse files
main.py
CHANGED
|
@@ -129,7 +129,7 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
|
|
| 129 |
|
| 130 |
# Endpoints
|
| 131 |
@app.get("/")
|
| 132 |
-
|
| 133 |
return {"message": "Hello from our API, models are loading in the background!"}
|
| 134 |
|
| 135 |
|
|
|
|
| 129 |
|
| 130 |
# Endpoints
|
| 131 |
@app.get("/")
|
| 132 |
+
def read_root():
|
| 133 |
return {"message": "Hello from our API, models are loading in the background!"}
|
| 134 |
|
| 135 |
|