File size: 724 Bytes
46b2dc4
 
 
 
f77e6a2
 
 
46b2dc4
 
 
 
 
 
 
 
 
 
4d89852
46b2dc4
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
import pandas as pd


df = pd.read_table("Visual-Riddles-Leaderboard.tsv")
headline = """# Visual Riddles Leaderboard 🚀
To submit your results to the leaderboard, please add a new column with your predictions to [this csv](https://huggingface.co/datasets/visual-riddles/visual_riddles/blob/main/test/metadata.csv), and send to [this mail](mailto:[email protected]).
"""

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", "number", "number", "number"]
        )

demo.launch()