Spaces:
Runtime error
Runtime error
Update if condition in app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def classify_image(img):
|
|
10 |
output = dict(zip(labels, map(float, probs)))
|
11 |
for out in output:
|
12 |
val = output[out]
|
13 |
-
if val
|
14 |
return {"Not Sure/Others": 0}
|
15 |
return output
|
16 |
|
|
|
10 |
output = dict(zip(labels, map(float, probs)))
|
11 |
for out in output:
|
12 |
val = output[out]
|
13 |
+
if val < 60:
|
14 |
return {"Not Sure/Others": 0}
|
15 |
return output
|
16 |
|