Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,9 @@ def load_model(model_repo_id):
|
|
40 |
def predict(pilimg,Threshold):
|
41 |
|
42 |
image_np = pil_image_as_numpy_array(pilimg)
|
43 |
-
if Threshold
|
44 |
Threshold=0.38
|
45 |
-
|
46 |
return predict2(image_np),predict3(image_np),Threshold
|
47 |
|
48 |
def predict2(image_np):
|
|
|
40 |
def predict(pilimg,Threshold):
|
41 |
|
42 |
image_np = pil_image_as_numpy_array(pilimg)
|
43 |
+
if type(Threshold) is NoneType:
|
44 |
Threshold=0.38
|
45 |
+
|
46 |
return predict2(image_np),predict3(image_np),Threshold
|
47 |
|
48 |
def predict2(image_np):
|