apailang commited on
Commit
643a522
Β·
1 Parent(s): a106563

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,8 +40,8 @@ def load_model(model_repo_id):
40
  def predict(pilimg,Threshold):
41
 
42
  image_np = pil_image_as_numpy_array(pilimg)
43
- if type(Threshold) is None:
44
- Threshold=0.38
45
 
46
  return predict2(image_np,Threshold),predict3(image_np,Threshold),Threshold
47
 
 
40
  def predict(pilimg,Threshold):
41
 
42
  image_np = pil_image_as_numpy_array(pilimg)
43
+ if type(Threshold) is None or variable == 0:
44
+ Threshold=0.88
45
 
46
  return predict2(image_np,Threshold),predict3(image_np,Threshold),Threshold
47