Omnibus commited on
Commit
d466f98
·
1 Parent(s): 5c124fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def image_classifier0(image):
25
  outputs = pipe0(image)
26
  results = {}
27
  for idx,result in enumerate(outputs):
28
- labels[idx] = outputs[idx]['score']
29
  return results
30
  def image_classifier1(image):
31
  outputs = pipe1(image)
 
25
  outputs = pipe0(image)
26
  results = {}
27
  for idx,result in enumerate(outputs):
28
+ results[labels[idx]] = outputs[idx]['score']
29
  return results
30
  def image_classifier1(image):
31
  outputs = pipe1(image)