devingulliver
commited on
Commit
•
f23a45f
1
Parent(s):
ef8b878
Abbreviate type column
Browse files
app.py
CHANGED
@@ -13,7 +13,8 @@ def filter_table(name, type, arch, license):
|
|
13 |
tmp = tmp[tmp["Type"].isin(type)]
|
14 |
tmp = tmp[tmp["Architecture"].isin(arch)]
|
15 |
tmp = tmp[tmp["License"].isin(license)]
|
16 |
-
tmp
|
|
|
17 |
tmp["Name"] = tmp["Name"].apply(lambda x: f'<a target="_blank" href="https://huggingface.co/{x}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{x}</a>')
|
18 |
return tmp
|
19 |
|
|
|
13 |
tmp = tmp[tmp["Type"].isin(type)]
|
14 |
tmp = tmp[tmp["Architecture"].isin(arch)]
|
15 |
tmp = tmp[tmp["License"].isin(license)]
|
16 |
+
tmp = tmp.rename({"Type": "T"})
|
17 |
+
tmp["T"] = tmp["T"].apply(lambda x: x[0])
|
18 |
tmp["Name"] = tmp["Name"].apply(lambda x: f'<a target="_blank" href="https://huggingface.co/{x}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{x}</a>')
|
19 |
return tmp
|
20 |
|