Spaces:
Sleeping
Sleeping
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) | |