TrustLLM / app.py
Huang Yue
update
9673861
raw
history blame
384 Bytes
import gradio as gr
import pandas as pd
def filter_records(records, part):
return records[records["part"] == part]
demo = gr.Interface(
filter_records,
[
gr.Dataframe(pd.read_csv('leaderboard.csv')
),
gr.Dropdown(["Toxicity", "Bias", "Value-alignment"]),
],
"dataframe",
description="Enter the part.",
)
demo.launch()