Spaces:
Sleeping
Sleeping
osanseviero
commited on
Commit
·
1bf8749
1
Parent(s):
70d478b
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
|
|
|
|
|
|
4 |
df = pd.read_csv("results.csv")
|
|
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
gr.Markdown("""<h1 align="center" id="space-title">Universities at Hugging Face</h1>""")
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
+
def clickable(x):
|
5 |
+
return f'<a target="_blank" href="https://huggingface.co/{x}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{x}</a>'
|
6 |
+
|
7 |
df = pd.read_csv("results.csv")
|
8 |
+
df["name"] = df["name"].apply(lambda x: clickable(x))
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
gr.Markdown("""<h1 align="center" id="space-title">Universities at Hugging Face</h1>""")
|