yuragoithf commited on
Commit
37216d8
·
verified ·
1 Parent(s): a1227fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def classify_image(image):
64
  output = {labels.get(i): float(results[i]) for i in range(len(results))}
65
  print("output is ...", output)
66
  result = output if max(output.values()) >=0.98 else {"NO_CIFAR10_CLASS": 1}
67
- return result[0]
68
 
69
 
70
  inputs = gr.components.Image(type="pil", label="Upload an image")
 
64
  output = {labels.get(i): float(results[i]) for i in range(len(results))}
65
  print("output is ...", output)
66
  result = output if max(output.values()) >=0.98 else {"NO_CIFAR10_CLASS": 1}
67
+ return result
68
 
69
 
70
  inputs = gr.components.Image(type="pil", label="Upload an image")