Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
|
| 2 |
-
from fastapi import FastAPI, HTTPException
|
| 3 |
from pydantic import BaseModel, Field
|
| 4 |
import joblib
|
| 5 |
import json
|
|
@@ -66,10 +66,10 @@ def read_root():
|
|
| 66 |
@app.get("/health")
|
| 67 |
def health_check():
|
| 68 |
return {
|
| 69 |
-
"status": "healthy",
|
| 70 |
-
|
| 71 |
-
"timestamp": datetime.now().isoformat()
|
| 72 |
-
}
|
| 73 |
|
| 74 |
@app.get("/categories")
|
| 75 |
def get_categories():
|
|
|
|
| 1 |
|
| 2 |
+
from fastapi import FastAPI #, HTTPException
|
| 3 |
from pydantic import BaseModel, Field
|
| 4 |
import joblib
|
| 5 |
import json
|
|
|
|
| 66 |
@app.get("/health")
|
| 67 |
def health_check():
|
| 68 |
return {
|
| 69 |
+
"status": "healthy"},
|
| 70 |
+
# "model_loaded": model is not None,
|
| 71 |
+
#"timestamp": datetime.now().isoformat()
|
| 72 |
+
# }
|
| 73 |
|
| 74 |
@app.get("/categories")
|
| 75 |
def get_categories():
|