SondosMB commited on
Commit
4996c56
·
verified ·
1 Parent(s): d6777ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -401,26 +401,26 @@ with gr.Blocks(css=css_tech_theme) as demo:
401
  <li>5️⃣ <strong>Leaderboard:</strong> View real-time rankings on the leaderboard.</li>
402
  </ul>
403
  </div>
404
- """)
405
 
406
  with gr.TabItem("📤 Submission"):
407
- with gr.Markdown("""
408
  <div class="submission-section">
409
  <h2>Submit Your Predictions</h2>
410
  <p>Upload your prediction file and provide your model name to evaluate and submit to the leaderboard.</p>
411
  </div>
412
  """):
413
- with gr.Row(elem_id="submission-fields"):
414
- file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True)
415
- model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name")
416
 
417
- with gr.Row(elem_id="submission-results"):
418
- overall_accuracy_display = gr.Number(label="Overall Accuracy", interactive=False)
419
 
420
- with gr.Row(elem_id="submission-buttons"):
421
- eval_button = gr.Button("Evaluate")
422
- submit_button = gr.Button("Prove and Submit to Leaderboard", visible=False)
423
- eval_status = gr.Textbox(label="Evaluation Status", interactive=False)
424
 
425
  # Define the functions outside the `with` block
426
  def handle_evaluation(file, model_name):
 
401
  <li>5️⃣ <strong>Leaderboard:</strong> View real-time rankings on the leaderboard.</li>
402
  </ul>
403
  </div>
404
+ """)
405
 
406
  with gr.TabItem("📤 Submission"):
407
+ gr.Markdown("""
408
  <div class="submission-section">
409
  <h2>Submit Your Predictions</h2>
410
  <p>Upload your prediction file and provide your model name to evaluate and submit to the leaderboard.</p>
411
  </div>
412
  """):
413
+ with gr.Row(elem_id="submission-fields"):
414
+ file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True)
415
+ model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name")
416
 
417
+ with gr.Row(elem_id="submission-results"):
418
+ overall_accuracy_display = gr.Number(label="Overall Accuracy", interactive=False)
419
 
420
+ with gr.Row(elem_id="submission-buttons"):
421
+ eval_button = gr.Button("Evaluate")
422
+ submit_button = gr.Button("Prove and Submit to Leaderboard", visible=False)
423
+ eval_status = gr.Textbox(label="Evaluation Status", interactive=False)
424
 
425
  # Define the functions outside the `with` block
426
  def handle_evaluation(file, model_name):