Spaces:
Runtime error
Runtime error
Attempts at CSS prettification
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def filter_table(cols, name, type, arch, license):
|
|
| 19 |
# prettify
|
| 20 |
tmp["Type"] = tmp["Type"].apply(lambda x: x[0])
|
| 21 |
tmp = tmp.rename({"Type": "T"}, axis=1)
|
| 22 |
-
tmp["Name"] = tmp["Name"].apply(lambda x: f'<a target="_blank" href="https://huggingface.co/{x}" style="color:
|
| 23 |
|
| 24 |
return tmp
|
| 25 |
|
|
@@ -46,8 +46,8 @@ def submit_model(name):
|
|
| 46 |
|
| 47 |
return "# SUCCESS: Please wait up to 24 hours for your model to be added to the queue."
|
| 48 |
|
| 49 |
-
with gr.Blocks() as demo:
|
| 50 |
-
gr.HTML('<
|
| 51 |
|
| 52 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 53 |
with gr.Tab("π
LLM Benchmark"):
|
|
|
|
| 19 |
# prettify
|
| 20 |
tmp["Type"] = tmp["Type"].apply(lambda x: x[0])
|
| 21 |
tmp = tmp.rename({"Type": "T"}, axis=1)
|
| 22 |
+
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>')
|
| 23 |
|
| 24 |
return tmp
|
| 25 |
|
|
|
|
| 46 |
|
| 47 |
return "# SUCCESS: Please wait up to 24 hours for your model to be added to the queue."
|
| 48 |
|
| 49 |
+
with gr.Blocks(css=".tab-buttons button{font-size:1.3em}table::-webkit-scrollbar-track{background:var(--scrollbarBG)}table::-webkit-scrollbar-thumb{background:var(--thumbBG)}") as demo:
|
| 50 |
+
gr.HTML('<h1 style="text-align:center"><span style="font-size:1.3em">Subquadratic LLM Leaderboard</span></h1>')
|
| 51 |
|
| 52 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 53 |
with gr.Tab("π
LLM Benchmark"):
|