Update app.py
Browse files
app.py
CHANGED
@@ -442,16 +442,16 @@ with gr.Blocks(css=css_tech_theme) as demo:
|
|
442 |
</div>
|
443 |
""")
|
444 |
with gr.Row(elem_id="submission-fields"):
|
445 |
-
file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True,scale=1, min_width=12000)
|
446 |
-
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name",scale=1, min_width=800)
|
447 |
|
448 |
with gr.Row(elem_id="submission-results"):
|
449 |
-
overall_accuracy_display = gr.Number(label="Overall Accuracy", interactive=False,scale=1,min_width=1200)
|
450 |
|
451 |
with gr.Row(elem_id="submission-buttons"):
|
452 |
-
eval_button = gr.Button("Evaluate",scale=1,min_width=1200)
|
453 |
-
submit_button = gr.Button("Prove and Submit to Leaderboard", elem_id="evaluation-status", visible=False,scale=1,min_width=1200)
|
454 |
-
eval_status = gr.Textbox(label="Evaluation Status", interactive=False,scale=1,min_width=1200)
|
455 |
|
456 |
# Define the functions outside the `with` block
|
457 |
def handle_evaluation(file, model_name):
|
|
|
442 |
</div>
|
443 |
""")
|
444 |
with gr.Row(elem_id="submission-fields"):
|
445 |
+
file_input = gr.File(label="π Upload Prediction CSV", file_types=[".csv"], interactive=True,scale=1, min_width=12000)
|
446 |
+
model_name_input = gr.Textbox(label="π·οΈ Model Name", placeholder="Enter your model name",scale=1, min_width=800)
|
447 |
|
448 |
with gr.Row(elem_id="submission-results"):
|
449 |
+
overall_accuracy_display = gr.Number(label="π Overall Accuracy (%)", interactive=False,scale=1,min_width=1200)
|
450 |
|
451 |
with gr.Row(elem_id="submission-buttons"):
|
452 |
+
eval_button = gr.Button("π Evaluate",scale=1,min_width=1200)
|
453 |
+
submit_button = gr.Button("π€ Prove and Submit to Leaderboard", elem_id="evaluation-status", visible=False,scale=1,min_width=1200)
|
454 |
+
eval_status = gr.Textbox(label="π οΈ Evaluation Status", interactive=False,scale=1,min_width=1200)
|
455 |
|
456 |
# Define the functions outside the `with` block
|
457 |
def handle_evaluation(file, model_name):
|