Spaces:
Sleeping
Sleeping
Update index.py
Browse files
index.py
CHANGED
@@ -275,7 +275,7 @@ def update_output(selected_topic, selected_domain, start_date, end_date):
|
|
275 |
row_content = []
|
276 |
for media in media_categories:
|
277 |
# Filter DataFrame for current media category
|
278 |
-
media_df =
|
279 |
|
280 |
# Group by FinBERT_label and count occurrences
|
281 |
label_counts = media_df['FinBERT_label_transformed'].value_counts()
|
|
|
275 |
row_content = []
|
276 |
for media in media_categories:
|
277 |
# Filter DataFrame for current media category
|
278 |
+
media_df = df_filtered[df_filtered['Veículos de notícias'] == media]
|
279 |
|
280 |
# Group by FinBERT_label and count occurrences
|
281 |
label_counts = media_df['FinBERT_label_transformed'].value_counts()
|