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)) | |
| 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) | |