Ani14 commited on
Commit
3ff0ea1
·
verified ·
1 Parent(s): 14c111c

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -26,6 +26,6 @@ async def detect(image: UploadFile = File(...)):
26
  image = cv2.imdecode(image, cv2.IMREAD_COLOR)
27
  wound_boxes = detect_wounds(image)
28
  image_with_boxes = draw_boxes(image, wound_boxes)
29
- result_path = 'esult.jpg'
30
  cv2.imwrite(result_path, image_with_boxes)
31
  return FileResponse(result_path, media_type='image/jpeg')
 
26
  image = cv2.imdecode(image, cv2.IMREAD_COLOR)
27
  wound_boxes = detect_wounds(image)
28
  image_with_boxes = draw_boxes(image, wound_boxes)
29
+ result_path = 'result.jpg'
30
  cv2.imwrite(result_path, image_with_boxes)
31
  return FileResponse(result_path, media_type='image/jpeg')