alozowski commited on
Commit
b3261a4
1 Parent(s): 4eed356

Fixed logging

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. src/leaderboard/filter_models.py +0 -1
app.py CHANGED
@@ -49,6 +49,8 @@ from src.submission.submit import add_new_eval
49
  from src.tools.collections import update_collections
50
  from src.tools.plots import create_metric_plot_obj, create_plot_df, create_scores_df
51
 
 
 
52
 
53
  # Start ephemeral Spaces on PRs (see config in README.md)
54
  enable_space_ci()
 
49
  from src.tools.collections import update_collections
50
  from src.tools.plots import create_metric_plot_obj, create_plot_df, create_scores_df
51
 
52
+ # Configure logging
53
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
54
 
55
  # Start ephemeral Spaces on PRs (see config in README.md)
56
  enable_space_ci()
src/leaderboard/filter_models.py CHANGED
@@ -138,7 +138,6 @@ def flag_models(leaderboard_data: list[dict]):
138
  else:
139
  flag_key = model_data[AutoEvalColumn.fullname.name]
140
 
141
- print(f"model check: {flag_key}")
142
  if flag_key in FLAGGED_MODELS:
143
  print(f"Flagged model: {flag_key}")
144
  issue_num = FLAGGED_MODELS[flag_key].split("/")[-1]
 
138
  else:
139
  flag_key = model_data[AutoEvalColumn.fullname.name]
140
 
 
141
  if flag_key in FLAGGED_MODELS:
142
  print(f"Flagged model: {flag_key}")
143
  issue_num = FLAGGED_MODELS[flag_key].split("/")[-1]