Ani14 commited on
Commit
54a1a1b
·
verified ·
1 Parent(s): 8c4a1de

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +4 -0
predict.py CHANGED
@@ -56,6 +56,10 @@ def calculate_wound_dimensions(mask):
56
  area_cm2 = length_cm * breadth_cm
57
  return length_cm, breadth_cm, depth_cm, area_cm2
58
 
 
 
 
 
59
  @app.post("/analyze_wound")
60
  async def analyze_wounds(file: UploadFile = File(...)):
61
  if file.filename.lower().endswith(('.png', '.jpg', '.jpeg')):
 
56
  area_cm2 = length_cm * breadth_cm
57
  return length_cm, breadth_cm, depth_cm, area_cm2
58
 
59
+ @app.get("/")
60
+ def home():
61
+ return {"message":"hello world"}
62
+
63
  @app.post("/analyze_wound")
64
  async def analyze_wounds(file: UploadFile = File(...)):
65
  if file.filename.lower().endswith(('.png', '.jpg', '.jpeg')):