Commit
·
f723d82
1
Parent(s):
b050867
adding clickable links for model names
Browse files
app.py
CHANGED
@@ -168,6 +168,8 @@ with demo:
|
|
168 |
value=["pretrained","fine-tuned","chat-models","merges/moerges"])
|
169 |
|
170 |
initial_df = pd.read_csv("./status/leaderboard_status_041624.csv")
|
|
|
|
|
171 |
|
172 |
def update_df(hw_selected, platform_selected, affiliation_selected, size_selected, precision_selected, type_selected):
|
173 |
filtered_df = filter_benchmarks_table(df=initial_df, hw_selected=hw_selected, platform_selected=platform_selected,
|
|
|
168 |
value=["pretrained","fine-tuned","chat-models","merges/moerges"])
|
169 |
|
170 |
initial_df = pd.read_csv("./status/leaderboard_status_041624.csv")
|
171 |
+
initial_df["Model"] = f'<a target="_blank" href="{"https://huggingface.co/"+initial_df["Model"]}">{initial_df["Model"]}</a>'
|
172 |
+
initial_df["Model"] = initial_df["Model"].astype("markdown")
|
173 |
|
174 |
def update_df(hw_selected, platform_selected, affiliation_selected, size_selected, precision_selected, type_selected):
|
175 |
filtered_df = filter_benchmarks_table(df=initial_df, hw_selected=hw_selected, platform_selected=platform_selected,
|