Spaces:
Runtime error
Runtime error
Fix probability of "Not Sure/Others"
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def classify_image(img):
|
|
16 |
if val*100 < 60:
|
17 |
count += 1
|
18 |
if count == 2:
|
19 |
-
return {"Not sure/Others":
|
20 |
return output
|
21 |
|
22 |
image = gr.inputs.Image(shape=(224, 224))
|
|
|
16 |
if val*100 < 60:
|
17 |
count += 1
|
18 |
if count == 2:
|
19 |
+
return {"Not sure/Others": 0}
|
20 |
return output
|
21 |
|
22 |
image = gr.inputs.Image(shape=(224, 224))
|