Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Sean Cho
commited on
Commit
Β·
d50e87a
1
Parent(s):
b3e7847
Remove details link
Browse files- src/display_models/utils.py +20 -20
src/display_models/utils.py
CHANGED
@@ -107,26 +107,26 @@ def make_clickable_model(model_name):
|
|
107 |
link = OASST_LINK
|
108 |
|
109 |
details_model_name = model_name.replace("/", "__")
|
110 |
-
details_link = f"https://huggingface.co/datasets/open-ko-llm-leaderboard/details_{details_model_name}"
|
111 |
-
|
112 |
-
if not bool(os.getenv("DEBUG", "False")):
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
return model_hyperlink(link, model_name) + " " + model_hyperlink(details_link, "π")
|
130 |
|
131 |
|
132 |
def styled_error(error):
|
|
|
107 |
link = OASST_LINK
|
108 |
|
109 |
details_model_name = model_name.replace("/", "__")
|
110 |
+
# details_link = f"https://huggingface.co/datasets/open-ko-llm-leaderboard/details_{details_model_name}"
|
111 |
+
|
112 |
+
# if not bool(os.getenv("DEBUG", "False")):
|
113 |
+
# # We only add these checks when not debugging, as they are extremely slow
|
114 |
+
# print(f"details_link: {details_link}")
|
115 |
+
# try:
|
116 |
+
# check_path = list(
|
117 |
+
# API.list_files_info(
|
118 |
+
# repo_id=f"open-ko-llm-leaderboard/details_{details_model_name}",
|
119 |
+
# paths="README.md",
|
120 |
+
# repo_type="dataset",
|
121 |
+
# )
|
122 |
+
# )
|
123 |
+
# print(f"check_path: {check_path}")
|
124 |
+
# except Exception as err:
|
125 |
+
# # No details repo for this model
|
126 |
+
# print(f"No details repo for this model: {err}")
|
127 |
+
# return model_hyperlink(link, model_name)
|
128 |
+
|
129 |
+
return model_hyperlink(link, model_name) # + " " + model_hyperlink(details_link, "π")
|
130 |
|
131 |
|
132 |
def styled_error(error):
|