23b719w commited on
Commit
76503f2
·
1 Parent(s): 6cd4a41

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def load_model2():
48
  threshold = 0.50
49
 
50
  def predict(pilimg,video_in_filepath,threshold):
51
- if pilimg != "":
52
  image_np = pil_image_as_numpy_array(pilimg)
53
  return predict2(image_np,threshold),None
54
  else:
 
48
  threshold = 0.50
49
 
50
  def predict(pilimg,video_in_filepath,threshold):
51
+ if pilimg:
52
  image_np = pil_image_as_numpy_array(pilimg)
53
  return predict2(image_np,threshold),None
54
  else: