Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ async def predict(img: UploadFile = File(...)):
37
  image = Image.open(io.BytesIO(bytes_data)).convert("RGB")
38
  np_img = np.array(image)
39
 
40
- results = model(np_img)
41
  result = results[0]
42
 
43
  # crack detection: check boxes
 
37
  image = Image.open(io.BytesIO(bytes_data)).convert("RGB")
38
  np_img = np.array(image)
39
 
40
+ results = model(np_img, conf=0.40)
41
  result = results[0]
42
 
43
  # crack detection: check boxes