File size: 754 Bytes
88878f9
 
 
1bf8749
 
 
88878f9
1bf8749
1e879fa
88878f9
 
 
 
 
bb1baa2
 
88878f9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr 
import pandas as pd

def clickable(x):
    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>'

df = pd.read_csv("results.csv")
df["name"] = df["name"].apply(lambda x: clickable(x))
df.drop(columns=df.columns[0], axis=1, inplace=True)

with gr.Blocks() as demo:
    gr.Markdown("""<h1 align="center" id="space-title">Universities at Hugging Face</h1>""")
    gr.Markdown("""This is from November 10 2023, it's not automatically updated.""")

    
    gr_spaces = gr.Dataframe(df, interactive=False, datatype=['str', "markdown", 'str', 'str', 'str', 'str', 'str', 'str', 'str', 'str', 'str'])

demo.launch(debug=True)