asquirous commited on
Commit
ef69052
1 Parent(s): 25751a2

Fix probability of "Not Sure/Others"

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": 100}
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))