FinancialSupport commited on
Commit
2edf3b2
·
verified ·
1 Parent(s): a4d42d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -143,6 +143,8 @@ def filter_models(
143
  else: # Show only still on the hub models
144
  filtered_df = df[df[AutoEvalColumn.still_on_hub.name] == True].copy()
145
 
 
 
146
  type_emoji = [t[0] for t in type_query]
147
  filtered_df = filtered_df[filtered_df[AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
148
  filtered_df = filtered_df[filtered_df[AutoEvalColumn.precision.name].isin(precision_query + ["None"])]
 
143
  else: # Show only still on the hub models
144
  filtered_df = df[df[AutoEvalColumn.still_on_hub.name] == True].copy()
145
 
146
+ filtered_df[AutoEvalColumn.model.name] = filtered_df[AutoEvalColumn.model.name].apply(lambda x: x.split('>')[-2].split('<')[0] if '<a' in x else x)
147
+
148
  type_emoji = [t[0] for t in type_query]
149
  filtered_df = filtered_df[filtered_df[AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
150
  filtered_df = filtered_df[filtered_df[AutoEvalColumn.precision.name].isin(precision_query + ["None"])]