global flag_TQA bug

#25
by franceth - opened
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -770,7 +770,6 @@ with gr.Blocks(theme='shivi/calm_seafoam', css_paths='style.css', js=js_func) as
770
  count=0
771
  for index, row in target_df.iterrows():
772
  if (reset_flag == False):
773
- global flag_TQA
774
  percent_complete = round(((index+1) / len(target_df)) * 100, 2)
775
  load_text = f"{generate_loading_text(percent_complete)}"
776
 
@@ -861,7 +860,6 @@ with gr.Blocks(theme='shivi/calm_seafoam', css_paths='style.css', js=js_func) as
861
  evaluator = OrchestratorEvaluator()
862
 
863
  for model in input_data["models"]:
864
- global flag_TQA
865
  if not flag_TQA:
866
  metrics_df_model = evaluator.evaluate_df(
867
  df=predictions_dict[model],
 
770
  count=0
771
  for index, row in target_df.iterrows():
772
  if (reset_flag == False):
 
773
  percent_complete = round(((index+1) / len(target_df)) * 100, 2)
774
  load_text = f"{generate_loading_text(percent_complete)}"
775
 
 
860
  evaluator = OrchestratorEvaluator()
861
 
862
  for model in input_data["models"]:
 
863
  if not flag_TQA:
864
  metrics_df_model = evaluator.evaluate_df(
865
  df=predictions_dict[model],