Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def predict(model, image, detection_threshold: float = 0.5):
|
|
| 24 |
return samples[0]["img"], preds[0]
|
| 25 |
|
| 26 |
|
| 27 |
-
def show_preds(input_image, detection_threshold):
|
| 28 |
if detection_threshold==0: detection_threshold=0.5
|
| 29 |
|
| 30 |
img, pred = predict(model=model, image=input_image, detection_threshold=detection_threshold)
|
|
|
|
| 24 |
return samples[0]["img"], preds[0]
|
| 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)
|