Update app.py
Browse files
app.py
CHANGED
|
@@ -397,7 +397,7 @@ def process_twitter_data(file):
|
|
| 397 |
for ct, cnt in df['نوع محتوا'].value_counts().items():
|
| 398 |
label = {'text': 'متن', 'photo': 'عکس', 'video': 'ویدئو'}.get(ct, ct)
|
| 399 |
pct = round(cnt / total * 100)
|
| 400 |
-
content_dist += f"<span style='margin-left:18px; color:#212121;'>{label}: <b>{cnt}</b> ({pct}%)</span>"
|
| 401 |
|
| 402 |
# پرتعاملترین توییتها
|
| 403 |
top_tweets = df.nlargest(10, 'تعامل_کل').copy()
|
|
|
|
| 397 |
for ct, cnt in df['نوع محتوا'].value_counts().items():
|
| 398 |
label = {'text': 'متن', 'photo': 'عکس', 'video': 'ویدئو'}.get(ct, ct)
|
| 399 |
pct = round(cnt / total * 100)
|
| 400 |
+
content_dist += f"<span style='margin-left:18px; color:#212121;'>{label}: <b style='color:#212121;'>{cnt}</b> ({pct}%)</span>"
|
| 401 |
|
| 402 |
# پرتعاملترین توییتها
|
| 403 |
top_tweets = df.nlargest(10, 'تعامل_کل').copy()
|