nehulagrawal commited on
Commit
74db328
1 Parent(s): 55abc26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def image_classifier(inp):
15
  # Combine the two lists and sort based on values in descending order
16
  sorted_pairs = sorted(zip(categories, probs), key=lambda x: x[1], reverse=True)
17
 
18
- resultado = []
19
  for name, value in sorted_pairs:
20
  result.append(f'{name}: {value:.2f}%')
21
 
 
15
  # Combine the two lists and sort based on values in descending order
16
  sorted_pairs = sorted(zip(categories, probs), key=lambda x: x[1], reverse=True)
17
 
18
+ result = []
19
  for name, value in sorted_pairs:
20
  result.append(f'{name}: {value:.2f}%')
21