Spaces:
Sleeping
Sleeping
File size: 417 Bytes
76ae4e8 9673861 76ae4e8 9673861 76ae4e8 2c38ef9 9673861 2c38ef9 9673861 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
import pandas as pd
def filter_records(records, part):
return records[records["part"] == part]
data = pd.read_csv('leaderboard.csv')
demo = gr.Interface(
filter_records,
[
gr.Dataframe(data, headers=data.columns, datatype=data.dtypes),
gr.Dropdown(["Toxicity", "Bias", "Value-alignment"]),
],
"dataframe",
description="Enter the part.",
)
demo.launch()
|