JVice commited on
Commit
cbaca37
β€’
1 Parent(s): 03aaa57

Update tab_manager.py

Browse files
Files changed (1) hide show
  1. tab_manager.py +4 -4
tab_manager.py CHANGED
@@ -103,8 +103,8 @@ def general_bias_eval_setup(tab, modelID, imagesTab):
103
  st.rerun()
104
 
105
  if user_evaluation_variables.RUN_TIME and user_evaluation_variables.CURRENT_EVAL_TYPE == 'general':
106
- st.write("General Bias Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
107
- GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, 21, 'general')
108
  genCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
109
  user_evaluation_variables.EVAL_ID,
110
  'general')
@@ -176,8 +176,8 @@ def task_oriented_bias_eval_setup(tab, modelID, imagesTab):
176
  else:
177
  st.error('Please input a target for your task-oriented analysis', icon="🚨")
178
  if user_evaluation_variables.RUN_TIME and user_evaluation_variables.CURRENT_EVAL_TYPE == 'task-oriented':
179
- st.write("Task-Oriented Bias Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
180
- GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, 21, 'task-oriented')
181
  taskCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
182
  user_evaluation_variables.EVAL_ID,
183
  user_evaluation_variables.TASK_TARGET)
 
103
  st.rerun()
104
 
105
  if user_evaluation_variables.RUN_TIME and user_evaluation_variables.CURRENT_EVAL_TYPE == 'general':
106
+ # st.write("General Bias Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
107
+ GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, user_evaluation_variables.EVAL_ID, 21, 'general')
108
  genCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
109
  user_evaluation_variables.EVAL_ID,
110
  'general')
 
176
  else:
177
  st.error('Please input a target for your task-oriented analysis', icon="🚨")
178
  if user_evaluation_variables.RUN_TIME and user_evaluation_variables.CURRENT_EVAL_TYPE == 'task-oriented':
179
+ # st.write("Task-Oriented Bias Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
180
+ GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, user_evaluation_variables.EVAL_ID, 21, 'task-oriented')
181
  taskCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
182
  user_evaluation_variables.EVAL_ID,
183
  user_evaluation_variables.TASK_TARGET)