Spaces:
Running
on
Zero
Running
on
Zero
fixed bugs
Browse files
indiebot_arena/ui/leaderboard.py
CHANGED
@@ -38,10 +38,10 @@ def leaderboard_content(dao, language):
|
|
38 |
weight_class_radio = gr.Radio(choices=["U-5GB", "U-10GB"], label="階級", value=initial_weight_class)
|
39 |
leaderboard_table = gr.Dataframe(
|
40 |
headers=["Rank", "Model Name", "Elo Score", "File Size (GB)", "Description", "Last Updated"],
|
41 |
-
value=fetch_leaderboard_data(initial_weight_class),
|
42 |
interactive=False
|
43 |
)
|
44 |
refresh_btn = gr.Button("更新")
|
45 |
weight_class_radio.change(fn=fetch_leaderboard_data, inputs=weight_class_radio, outputs=leaderboard_table)
|
46 |
refresh_btn.click(fn=fetch_leaderboard_data, inputs=weight_class_radio, outputs=leaderboard_table)
|
|
|
47 |
return leaderboard_ui
|
|
|
38 |
weight_class_radio = gr.Radio(choices=["U-5GB", "U-10GB"], label="階級", value=initial_weight_class)
|
39 |
leaderboard_table = gr.Dataframe(
|
40 |
headers=["Rank", "Model Name", "Elo Score", "File Size (GB)", "Description", "Last Updated"],
|
|
|
41 |
interactive=False
|
42 |
)
|
43 |
refresh_btn = gr.Button("更新")
|
44 |
weight_class_radio.change(fn=fetch_leaderboard_data, inputs=weight_class_radio, outputs=leaderboard_table)
|
45 |
refresh_btn.click(fn=fetch_leaderboard_data, inputs=weight_class_radio, outputs=leaderboard_table)
|
46 |
+
leaderboard_ui.load(fn=fetch_leaderboard_data, inputs=weight_class_radio, outputs=leaderboard_table)
|
47 |
return leaderboard_ui
|
indiebot_arena/ui/registration.py
CHANGED
@@ -165,10 +165,11 @@ def registration_content(dao, language):
|
|
165 |
mdl_list = gr.Dataframe(
|
166 |
headers=["Weight Class", "Model Name", "Runtime", "Quantization", "Weights Format",
|
167 |
"Weights File Size", "Description", "Created At"],
|
168 |
-
value=
|
169 |
interactive=False
|
170 |
)
|
171 |
weight_class_radio.change(fn=fetch_models, inputs=weight_class_radio, outputs=mdl_list)
|
|
|
172 |
with gr.Accordion("🔰 モデルの登録ガイド", open=False):
|
173 |
with open(docs_path, "r", encoding="utf-8") as f:
|
174 |
markdown_content = f.read()
|
|
|
165 |
mdl_list = gr.Dataframe(
|
166 |
headers=["Weight Class", "Model Name", "Runtime", "Quantization", "Weights Format",
|
167 |
"Weights File Size", "Description", "Created At"],
|
168 |
+
value=[],
|
169 |
interactive=False
|
170 |
)
|
171 |
weight_class_radio.change(fn=fetch_models, inputs=weight_class_radio, outputs=mdl_list)
|
172 |
+
ui.load(fn=fetch_models, inputs=weight_class_radio, outputs=mdl_list)
|
173 |
with gr.Accordion("🔰 モデルの登録ガイド", open=False):
|
174 |
with open(docs_path, "r", encoding="utf-8") as f:
|
175 |
markdown_content = f.read()
|