0-ma commited on
Commit
474d633
·
verified ·
1 Parent(s): 91d639b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def predict(image):
24
  #predictions = np.argmax(logits, axis=1)
25
  #predicted_labels = [labels[prediction] for prediction in predictions]
26
  #print(predicted_labels[0],logits[0][predictions[0]])
27
- confidences = {labels[i]: float(logits[i]) for i in range(len(labels))}
28
  return confidences
29
  #return {"predictions" : predictions }
30
 
 
24
  #predictions = np.argmax(logits, axis=1)
25
  #predicted_labels = [labels[prediction] for prediction in predictions]
26
  #print(predicted_labels[0],logits[0][predictions[0]])
27
+ confidences = {labels[i]: float(logits[0][i]) for i in range(len(labels))}
28
  return confidences
29
  #return {"predictions" : predictions }
30