Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,6 @@ def predict(model, image, detection_threshold: float = 0.5):
|
|
| 25 |
|
| 26 |
|
| 27 |
def show_preds(input_image, detection_threshold=0.5):
|
| 28 |
-
if detection_threshold==0: detection_threshold=0.5
|
| 29 |
|
| 30 |
img, pred = predict(model=model, image=input_image, detection_threshold=detection_threshold)
|
| 31 |
# print(pred)
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
def show_preds(input_image, detection_threshold=0.5):
|
|
|
|
| 28 |
|
| 29 |
img, pred = predict(model=model, image=input_image, detection_threshold=detection_threshold)
|
| 30 |
# print(pred)
|