Spaces:
Sleeping
Sleeping
mahmoud669
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ if uploaded_file is not None:
|
|
76 |
preds.append(pred_label)
|
77 |
|
78 |
|
79 |
-
freq = Counter(
|
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}%")
|