saattrupdan commited on
Commit
6e9ab8e
1 Parent(s): 9e3c3cd

fix: Lower case model sorting

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -425,11 +425,14 @@ def update_model_ids_dropdown(
425
  for model_id in df.index
426
  }
427
 
428
- filtered_models: list[str] = sorted([
429
- model_id
430
- for model_id in unique_models
431
- if all(model_id in df.index for df in filtered_results_dfs.values())
432
- ])
 
 
 
433
 
434
  if len(filtered_models) == 0:
435
  logger.info(
 
425
  for model_id in df.index
426
  }
427
 
428
+ filtered_models: list[str] = sorted(
429
+ [
430
+ model_id
431
+ for model_id in unique_models
432
+ if all(model_id in df.index for df in filtered_results_dfs.values())
433
+ ],
434
+ key=lambda model_id: model_id.lower(),
435
+ )
436
 
437
  if len(filtered_models) == 0:
438
  logger.info(