imanhamid commited on
Commit
62b2148
·
1 Parent(s): f3ad556

Update app.py

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