Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,8 +43,8 @@ def predict(pilimg,Threshold):
|
|
| 43 |
|
| 44 |
if Threshold is None or Threshold == 0:
|
| 45 |
Threshold=0.88
|
| 46 |
-
|
| 47 |
-
|
| 48 |
|
| 49 |
return predict2(image_np,Threshold),predict3(image_np,Threshold),Threshold
|
| 50 |
|
|
|
|
| 43 |
|
| 44 |
if Threshold is None or Threshold == 0:
|
| 45 |
Threshold=0.88
|
| 46 |
+
else:
|
| 47 |
+
Threshold= float(Threshold)
|
| 48 |
|
| 49 |
return predict2(image_np,Threshold),predict3(image_np,Threshold),Threshold
|
| 50 |
|