fev-leaderboard / app.py
shchuro's picture
Fix row_count
02b1bd6
raw
history blame
627 Bytes
import gradio as gr
import pandas as pd
# Load the CSV data into a pandas DataFrame
df = pd.read_csv(
"https://raw.githubusercontent.com/autogluon/fev/refs/heads/main/benchmarks/chronos_zeroshot/results/seasonal_naive.csv"
)
markdown_text = """
Hello world
"""
with gr.Blocks() as demo:
with gr.Tab("Leaderboard"):
gr.Markdown("## Leaderboard")
gr.Dataframe(
value=df,
interactive=True,
row_count=len(df),
col_count=len(df.columns),
)
with gr.Tab("About"):
gr.Markdown(markdown_text)
if __name__ == "__main__":
demo.launch()