Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import pandas as pd | |
| df = pd.read_table("WHOOPS_Explanation_of_Violation_Leaderboard.tsv") | |
| headline = """# WHOOPS! Leaderboard | |
| To submit your results to the leaderboard, please add a "predictions" column to [this csv](https://huggingface.co/datasets/nlphuji/whoops/blob/main/whoops_dataset.csv), and send to [this mail](mailto:yonatanbitton1@gmail.com) or [this mail](mailto:whoops.benchmark@gmail.com,). | |
| """ | |
| demo = gr.Blocks() | |
| with demo: | |
| with gr.Row(): | |
| gr.Markdown(headline) | |
| with gr.Column(): | |
| leaderboard_df = gr.components.DataFrame( | |
| value=df, | |
| datatype=["markdown", "number", "number", "number"] | |
| ) | |
| demo.launch() | |