apailang commited on
Commit
71a2570
Β·
1 Parent(s): 7032a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict(pilimg,Threshold):
41
 
42
  image_np = pil_image_as_numpy_array(pilimg)
43
 
44
- if type(Threshold) is None or Threshold == 0:
45
  Threshold=0.88
46
  else:
47
  Threshold= float(Threshold)
 
41
 
42
  image_np = pil_image_as_numpy_array(pilimg)
43
 
44
+ if isnull(Threshold) or Threshold == 0:
45
  Threshold=0.88
46
  else:
47
  Threshold= float(Threshold)