Shiyu Zhao commited on
Commit
cc69a12
·
1 Parent(s): c578caa

Update space

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -1014,13 +1014,9 @@ with gr.Blocks(css=css) as demo:
1014
  placeholder="e.g., 4x NVIDIA A100 80GB"
1015
  )
1016
  with gr.Row():
1017
- # with gr.Column(scale=1): # Small scale for checkbox
1018
  honor_code = gr.Checkbox(
1019
  label="By submitting these results, you confirm that they are truthful and reproducible, and you verify the integrity of your submission.",
1020
- value=False,
1021
- elem_id="honor_code_checkbox")
1022
- # with gr.Column(scale=10): # Much larger scale for text
1023
- # gr.Markdown("")
1024
  csv_file = gr.File(
1025
  label="Prediction CSV*",
1026
  file_types=[".csv"],
@@ -1036,7 +1032,7 @@ with gr.Blocks(css=css) as demo:
1036
  return gr.Button.update(interactive=honor_checked)
1037
 
1038
 
1039
- submit_btn = gr.Button("Submit", variant="primary", interactive=False, elem_id="submit_button")
1040
  result = gr.Textbox(label="Submission Status", interactive=False)
1041
 
1042
  # Set up event handlers
@@ -1045,11 +1041,6 @@ with gr.Blocks(css=css) as demo:
1045
  inputs=[model_type_filter],
1046
  outputs=all_dfs
1047
  )
1048
- honor_code.change(
1049
- fn=update_submit_button,
1050
- inputs=[honor_code],
1051
- outputs=[submit_btn]
1052
- )
1053
 
1054
  # Event handler for submission button
1055
  submit_btn.click(
 
1014
  placeholder="e.g., 4x NVIDIA A100 80GB"
1015
  )
1016
  with gr.Row():
 
1017
  honor_code = gr.Checkbox(
1018
  label="By submitting these results, you confirm that they are truthful and reproducible, and you verify the integrity of your submission.",
1019
+ value=False)
 
 
 
1020
  csv_file = gr.File(
1021
  label="Prediction CSV*",
1022
  file_types=[".csv"],
 
1032
  return gr.Button.update(interactive=honor_checked)
1033
 
1034
 
1035
+ submit_btn = gr.Button("Submit", variant="primary")
1036
  result = gr.Textbox(label="Submission Status", interactive=False)
1037
 
1038
  # Set up event handlers
 
1041
  inputs=[model_type_filter],
1042
  outputs=all_dfs
1043
  )
 
 
 
 
 
1044
 
1045
  # Event handler for submission button
1046
  submit_btn.click(