DavidJyes commited on
Commit
16a091c
·
verified ·
1 Parent(s): 890f47e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- "model_loaded": model is not None,
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():