Spaces:
Running
Running
Update predict.py
Browse files- 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')):
|