sh1gechan commited on
Commit
8e4a7c9
1 Parent(s): d1fe5cc

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +9 -1
src/leaderboard/read_evals.py CHANGED
@@ -70,7 +70,15 @@ class EvalResult:
70
  # org_and_model = config.get("model_name", config.get("offline_inference").get("model_name", None))
71
  org_and_model = config.get("model_name", config.get("offline_inference", {}).get("model_name", "Unknown"))
72
  org_and_model = org_and_model.split("/", 1)
73
- print(f"Final Model name: {org_and_model}")
 
 
 
 
 
 
 
 
74
 
75
  if len(org_and_model) == 1:
76
  org = None
 
70
  # org_and_model = config.get("model_name", config.get("offline_inference").get("model_name", None))
71
  org_and_model = config.get("model_name", config.get("offline_inference", {}).get("model_name", "Unknown"))
72
  org_and_model = org_and_model.split("/", 1)
73
+
74
+ # org_and_modelがリストの場合、"/"で結合
75
+ if isinstance(org_and_model, list):
76
+ full_model = "/".join(org_and_model)
77
+ else:
78
+ full_model = org_and_model
79
+
80
+ print(f"Final Model name (full): {full_model}")
81
+
82
 
83
  if len(org_and_model) == 1:
84
  org = None