Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def add_new_eval(
|
|
103 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
104 |
submission_repo.push_to_hub()
|
105 |
print("success update", model_name)
|
106 |
-
return
|
107 |
|
108 |
def get_normalized_df(df):
|
109 |
# final_score = df.drop('name', axis=1).sum(axis=1)
|
@@ -522,6 +522,8 @@ with block:
|
|
522 |
|
523 |
input_file = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
|
524 |
submit_button = gr.Button("Submit Eval")
|
|
|
|
|
525 |
|
526 |
submission_result = gr.Markdown()
|
527 |
submit_button.click(
|
@@ -532,6 +534,7 @@ with block:
|
|
532 |
revision_name_textbox,
|
533 |
model_link,
|
534 |
],
|
|
|
535 |
)
|
536 |
|
537 |
|
|
|
103 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
104 |
submission_repo.push_to_hub()
|
105 |
print("success update", model_name)
|
106 |
+
return gr.update(visible=False), gr.update(visible=True)
|
107 |
|
108 |
def get_normalized_df(df):
|
109 |
# final_score = df.drop('name', axis=1).sum(axis=1)
|
|
|
522 |
|
523 |
input_file = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
|
524 |
submit_button = gr.Button("Submit Eval")
|
525 |
+
submit_succ_button = gr.Button("Submit Success! Please press refresh and return to LeaderBoard!", interactive=False)
|
526 |
+
|
527 |
|
528 |
submission_result = gr.Markdown()
|
529 |
submit_button.click(
|
|
|
534 |
revision_name_textbox,
|
535 |
model_link,
|
536 |
],
|
537 |
+
outputs=[submit_button, submit_succ_button]
|
538 |
)
|
539 |
|
540 |
|