Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def predict(pilimg,Threshold):
|
|
| 41 |
|
| 42 |
image_np = pil_image_as_numpy_array(pilimg)
|
| 43 |
|
| 44 |
-
if
|
| 45 |
Threshold=0.88
|
| 46 |
# else:
|
| 47 |
# Threshold= float(Threshold)
|
|
|
|
| 41 |
|
| 42 |
image_np = pil_image_as_numpy_array(pilimg)
|
| 43 |
|
| 44 |
+
if Threshold is None or Threshold == 0:
|
| 45 |
Threshold=0.88
|
| 46 |
# else:
|
| 47 |
# Threshold= float(Threshold)
|