SondosMB commited on
Commit
5bafd2d
·
verified ·
1 Parent(s): e669126

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -5
app.py CHANGED
@@ -1043,11 +1043,21 @@ with gr.Blocks(css=css_tech_theme) as demo:
1043
 
1044
 
1045
  # Connect button clicks to the functions
1046
- eval_button.click(
1047
- handle_evaluation,
1048
- inputs=[file_input, model_name_input,Team_name_input],
1049
- outputs=[eval_status, overall_accuracy_display, submit_button],
1050
- )
 
 
 
 
 
 
 
 
 
 
1051
 
1052
  eval_button_pro.click(
1053
  handle_evaluation_pro,
 
1043
 
1044
 
1045
  # Connect button clicks to the functions
1046
+ # eval_button.click(
1047
+ # handle_evaluation,
1048
+ # inputs=[file_input, model_name_input,Team_name_input],
1049
+ # outputs=[eval_status, overall_accuracy_display, submit_button],
1050
+ # )
1051
+
1052
+ try:
1053
+ eval_button.click(
1054
+ handle_evaluation,
1055
+ inputs=[file_input, model_name_input, Team_name_input],
1056
+ outputs=[eval_status, overall_accuracy_display, submit_button],)
1057
+ print("✅ eval_button linked successfully") # Debugging print
1058
+ except Exception as e:
1059
+ print(f"❌ Error linking eval_button: {str(e)}")
1060
+
1061
 
1062
  eval_button_pro.click(
1063
  handle_evaluation_pro,