mahmoud669 commited on
Commit
2068125
·
verified ·
1 Parent(s): 1ac03ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ if uploaded_file is not None:
76
  preds.append(pred_label)
77
 
78
 
79
- freq = Counter(arr)
80
  top_three = freq.most_common(3)
81
  for celeb, count in top_three:
82
- st.write(f"{celeb}: {count*2}%")
 
76
  preds.append(pred_label)
77
 
78
 
79
+ freq = Counter(preds)
80
  top_three = freq.most_common(3)
81
  for celeb, count in top_three:
82
+ st.write(f"{celeb}: {int(count)*2}%")