Clémentine commited on
Commit
9e0f1e6
1 Parent(s): 6d1329a

fix of the model type display

Browse files
src/display_models/get_model_metadata.py CHANGED
@@ -100,7 +100,7 @@ def get_model_type(leaderboard_data: List[dict]):
100
  model_type = model_type_from_str(request["model_type"])
101
  model_data[AutoEvalColumn.model_type.name] = model_type.value.name
102
  model_data[AutoEvalColumn.model_type_symbol.name] = model_type.value.symbol # + ("🔺" if is_delta else "")
103
- except KeyError:
104
  if model_data["model_name_for_query"] in MODEL_TYPE_METADATA:
105
  model_data[AutoEvalColumn.model_type.name] = MODEL_TYPE_METADATA[
106
  model_data["model_name_for_query"]
 
100
  model_type = model_type_from_str(request["model_type"])
101
  model_data[AutoEvalColumn.model_type.name] = model_type.value.name
102
  model_data[AutoEvalColumn.model_type_symbol.name] = model_type.value.symbol # + ("🔺" if is_delta else "")
103
+ except Exception:
104
  if model_data["model_name_for_query"] in MODEL_TYPE_METADATA:
105
  model_data[AutoEvalColumn.model_type.name] = MODEL_TYPE_METADATA[
106
  model_data["model_name_for_query"]