Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -475,6 +475,8 @@ with block:
|
|
475 |
)
|
476 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
477 |
# Table 0
|
|
|
|
|
478 |
with gr.TabItem("π V-STaR", elem_id="vbench-tab-table", id=1):
|
479 |
with gr.Row():
|
480 |
with gr.Accordion("Citation", open=False):
|
@@ -484,29 +486,23 @@ with block:
|
|
484 |
elem_id="citation-button",
|
485 |
lines=14,
|
486 |
)
|
487 |
-
|
488 |
-
gr.Markdown(
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
data_component = gr.components.Dataframe(
|
493 |
-
value=
|
494 |
-
headers=COLUMN_NAMES,
|
495 |
type="pandas",
|
496 |
-
datatype=DATA_TITILE_TYPE,
|
497 |
interactive=False,
|
498 |
visible=True,
|
499 |
-
# height
|
500 |
-
|
501 |
-
|
502 |
-
choosen_q.click(choose_all_quailty, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter,vbench_validate_filter], outputs=data_component)
|
503 |
-
choosen_s.click(choose_all_semantic, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter,vbench_validate_filter], outputs=data_component)
|
504 |
-
# enable_b.click(enable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter], outputs=data_component)
|
505 |
-
disable_b.click(disable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
506 |
-
checkbox_group.change(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
507 |
-
vbench_team_filter.change(fn=on_filter_model_size_method_change, inputs=[checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
508 |
-
vbench_validate_filter.change(fn=on_filter_model_size_method_change, inputs=[checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
509 |
|
|
|
|
|
|
|
|
|
|
|
510 |
# table info
|
511 |
with gr.TabItem("π About", elem_id="mvbench-tab-table", id=5):
|
512 |
gr.Markdown(LEADERBORAD_INFO, elem_classes="markdown-text")
|
|
|
475 |
)
|
476 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
477 |
# Table 0
|
478 |
+
df = pd.read_csv("https://huggingface.co/datasets/V-STaR-Bench/vstar_leaderboard_submission/results.csv")
|
479 |
+
|
480 |
with gr.TabItem("π V-STaR", elem_id="vbench-tab-table", id=1):
|
481 |
with gr.Row():
|
482 |
with gr.Accordion("Citation", open=False):
|
|
|
486 |
elem_id="citation-button",
|
487 |
lines=14,
|
488 |
)
|
489 |
+
|
490 |
+
gr.Markdown(TABLE_INTRODUCTION)
|
491 |
+
|
492 |
+
# Display the CSV data directly
|
|
|
493 |
data_component = gr.components.Dataframe(
|
494 |
+
value=df,
|
|
|
495 |
type="pandas",
|
|
|
496 |
interactive=False,
|
497 |
visible=True,
|
498 |
+
# Optionally adjust other parameters, but note that 'height' is not supported in the latest version.
|
499 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
|
501 |
+
# If you need to update or refresh the table later, you can add additional controls/callbacks here.
|
502 |
+
|
503 |
+
# For now, simply display the loaded DataFrame.
|
504 |
+
data_component.render()
|
505 |
+
|
506 |
# table info
|
507 |
with gr.TabItem("π About", elem_id="mvbench-tab-table", id=5):
|
508 |
gr.Markdown(LEADERBORAD_INFO, elem_classes="markdown-text")
|