Spaces:
Runtime error
Runtime error
File size: 603 Bytes
88878f9 1bf8749 88878f9 1bf8749 88878f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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))
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)
demo.launch(debug=True)
|