Update app.py
Browse files
app.py
CHANGED
@@ -59,11 +59,12 @@ with gr.Blocks() as demo:
|
|
59 |
gr.Markdown(TASKS_DESCRIPTIONS[TASKS_PRETTY_REVERSE[task_pretty]])
|
60 |
|
61 |
leaderboard_table = get_leaderboard_for_task(task_pretty)
|
62 |
-
|
|
|
63 |
refresh_button = gr.Button("π Refresh", variant="secondary")
|
64 |
refresh_button.click(
|
65 |
fn=get_leaderboard_for_task,
|
66 |
-
inputs=
|
67 |
outputs=leaderboard_table,
|
68 |
)
|
69 |
|
|
|
59 |
gr.Markdown(TASKS_DESCRIPTIONS[TASKS_PRETTY_REVERSE[task_pretty]])
|
60 |
|
61 |
leaderboard_table = get_leaderboard_for_task(task_pretty)
|
62 |
+
task_input = gr.Text(value=task_pretty, visible=False)
|
63 |
+
|
64 |
refresh_button = gr.Button("π Refresh", variant="secondary")
|
65 |
refresh_button.click(
|
66 |
fn=get_leaderboard_for_task,
|
67 |
+
inputs=task_input,
|
68 |
outputs=leaderboard_table,
|
69 |
)
|
70 |
|