Spaces:
Running
Running
Simplify app
Browse files
app.py
CHANGED
|
@@ -6,22 +6,18 @@ df = pd.read_csv(
|
|
| 6 |
"https://raw.githubusercontent.com/autogluon/fev/refs/heads/main/benchmarks/chronos_zeroshot/results/seasonal_naive.csv"
|
| 7 |
)
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
# Define a function that returns the DataFrame
|
| 11 |
-
def show_data():
|
| 12 |
-
return df
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
# Alternatively, you can specify outputs=gr.DataFrame() for more configuration.
|
| 18 |
-
interface = gr.Interface(
|
| 19 |
-
fn=show_data,
|
| 20 |
-
inputs=[],
|
| 21 |
-
outputs="dataframe",
|
| 22 |
-
title="CSV Data Viewer",
|
| 23 |
-
description="This application displays the contents of a CSV file as a pandas DataFrame.",
|
| 24 |
-
)
|
| 25 |
|
| 26 |
if __name__ == "__main__":
|
| 27 |
-
|
|
|
|
| 6 |
"https://raw.githubusercontent.com/autogluon/fev/refs/heads/main/benchmarks/chronos_zeroshot/results/seasonal_naive.csv"
|
| 7 |
)
|
| 8 |
|
| 9 |
+
markdown_text = """
|
| 10 |
+
Hello world
|
| 11 |
+
"""
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
with gr.Blocks() as demo:
|
| 15 |
+
with gr.Tab("Leaderboard"):
|
| 16 |
+
gr.Markdown("## Leaderboard")
|
| 17 |
+
gr.Dataframe(value=df, interactive=False)
|
| 18 |
|
| 19 |
+
with gr.Tab("About"):
|
| 20 |
+
gr.Markdown(markdown_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
+
demo.launch()
|