thak123 commited on
Commit
a6e1e4f
1 Parent(s): 835c130

Update index.py

Browse files
Files changed (1) hide show
  1. index.py +1 -1
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 = df[df['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()
 
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()