Download app.py from visual-riddles/Visual-Riddles-Leaderboard: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/spaces/visual-riddles/Visual-Riddles-Leaderboard/resolve/979793aad46f54ac4e85f34fb7efdc36be2d409e/app.py
- Command line
-
hf download hf://spaces/visual-riddles/Visual-Riddles-Leaderboard@979793aad46f54ac4e85f34fb7efdc36be2d409e/app.py
-
curl -L -o app.py https://huggingface.co/spaces/visual-riddles/Visual-Riddles-Leaderboard/resolve/979793aad46f54ac4e85f34fb7efdc36be2d409e/app.py
709 Bytes
| import gradio as gr | |
| import pandas as pd | |
| df = pd.read_table("WHOOPS-Leaderboard-Full.tsv") | |
| headline = """# WHOOPS! Leaderboard Full | |
| 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", "number", "number", "number"] | |
| ) | |
| demo.launch() | |