01Yassine commited on
Commit
192ff12
·
verified ·
1 Parent(s): e89c2b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -373,19 +373,19 @@ def create_ui():
373
  with gr.Tab("📊 Metrics"):
374
  render_eval_info()
375
 
376
- with gr.Tab("📤 Submit your own system !"):
377
- with gr.Column():
378
- gr.Markdown("## Submit your system's predictions")
379
- name_input = gr.Textbox(label="Team Name")
380
- file_input = gr.File(label="Upload predictions CSV (ID,Labels)", type="binary")
381
- submit_button = gr.Button("Submit and Update Leaderboard")
382
- submission_output = gr.Markdown()
383
- submit_button.click(
384
- fn=submit_and_update_leaderboard,
385
- inputs=[name_input, file_input],
386
- outputs=[submission_output, leaderboard_table],
387
- show_progress=True
388
- )
389
 
390
  # Add a hidden progress component to trigger the loading spinner explicitly if needed,
391
  # but the default behavior of outputs updating should show it.
 
373
  with gr.Tab("📊 Metrics"):
374
  render_eval_info()
375
 
376
+ # with gr.Tab("📤 Submit your own system !"):
377
+ # with gr.Column():
378
+ # gr.Markdown("## Submit your system's predictions")
379
+ # name_input = gr.Textbox(label="Team Name")
380
+ # file_input = gr.File(label="Upload predictions CSV (ID,Labels)", type="binary")
381
+ # submit_button = gr.Button("Submit and Update Leaderboard")
382
+ # submission_output = gr.Markdown()
383
+ # submit_button.click(
384
+ # fn=submit_and_update_leaderboard,
385
+ # inputs=[name_input, file_input],
386
+ # outputs=[submission_output, leaderboard_table],
387
+ # show_progress=True
388
+ # )
389
 
390
  # Add a hidden progress component to trigger the loading spinner explicitly if needed,
391
  # but the default behavior of outputs updating should show it.