0-ma commited on
Commit
b71e439
·
verified ·
1 Parent(s): 0c904dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def predict(image):
25
  logits_positive[logits < 0] = 0
26
  logits_positive = logits_positive/np.sum(logits_positive)
27
  confidences = {}
28
- for i in range(len(labels):
29
  if logits[i]>0:
30
  confidences[labels[i]] = float(logits_positive[i])
31
  return confidences
 
25
  logits_positive[logits < 0] = 0
26
  logits_positive = logits_positive/np.sum(logits_positive)
27
  confidences = {}
28
+ for i in range(len(labels)):
29
  if logits[i]>0:
30
  confidences[labels[i]] = float(logits_positive[i])
31
  return confidences