Spaces:
Running
Running
Update app.py
#5
by
thompson1234
- opened
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
|