Spaces:
Runtime error
Runtime error
Lakoc
commited on
Commit
•
cdc057d
1
Parent(s):
3c6098a
v0.0.3 fix of the choices after model submission
Browse files
app.py
CHANGED
@@ -50,7 +50,8 @@ def submit_results():
|
|
50 |
return gr.update(value='Pre-submit model', visible=True, interactive=True), gr.update(
|
51 |
visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(
|
52 |
visible=False), gr.update(visible=False), gr.DataFrame(
|
53 |
-
value=leaderboard_server.get_leaderboard(), visible=True), gr.update(visible=False)
|
|
|
54 |
|
55 |
|
56 |
def erase_pre_submit():
|
@@ -153,7 +154,7 @@ with (gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css="footer {visibility
|
|
153 |
modal_submit_yes.click(
|
154 |
fn=submit_results,
|
155 |
outputs=[pre_submission_btn, submission_btn_yes, submission_btn_no, submit_prompt, pre_submit_info,
|
156 |
-
pre_submit_table, results_table, modal_submit]
|
157 |
)
|
158 |
|
159 |
modal_submit_no.click(
|
|
|
50 |
return gr.update(value='Pre-submit model', visible=True, interactive=True), gr.update(
|
51 |
visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(
|
52 |
visible=False), gr.update(visible=False), gr.DataFrame(
|
53 |
+
value=leaderboard_server.get_leaderboard(), visible=True), gr.update(visible=False), gr.update(
|
54 |
+
choices=leaderboard_server.submission_ids)
|
55 |
|
56 |
|
57 |
def erase_pre_submit():
|
|
|
154 |
modal_submit_yes.click(
|
155 |
fn=submit_results,
|
156 |
outputs=[pre_submission_btn, submission_btn_yes, submission_btn_no, submit_prompt, pre_submit_info,
|
157 |
+
pre_submit_table, results_table, modal_submit, detail_dropdown]
|
158 |
)
|
159 |
|
160 |
modal_submit_no.click(
|