Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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:
|