imanhamid commited on
Commit
f3ad556
·
1 Parent(s): 49d6dfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)