Spaces:
Running
Running
Printing Evaluation ID to screen
Browse files- tab_manager.py +3 -3
tab_manager.py
CHANGED
@@ -103,6 +103,7 @@ 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 |
GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, 21, 'general')
|
107 |
genCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
|
108 |
user_evaluation_variables.EVAL_ID,
|
@@ -175,6 +176,7 @@ def task_oriented_bias_eval_setup(tab, modelID, imagesTab):
|
|
175 |
else:
|
176 |
st.error('Please input a target for your task-oriented analysis', icon="π¨")
|
177 |
if user_evaluation_variables.RUN_TIME and user_evaluation_variables.CURRENT_EVAL_TYPE == 'task-oriented':
|
|
|
178 |
GBM.output_eval_results(user_evaluation_variables.EVAL_METRICS, 21, 'task-oriented')
|
179 |
taskCSVData = create_word_distribution_csv(user_evaluation_variables.EVAL_METRICS,
|
180 |
user_evaluation_variables.EVAL_ID,
|
@@ -319,7 +321,7 @@ def initiate_general_bias_evaluation(tab, modelID, specs, imagesTab):
|
|
319 |
user_evaluation_variables.OCCUPATION_CAPTIONS = occupationCaptions
|
320 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'general'
|
321 |
|
322 |
-
|
323 |
|
324 |
def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTab):
|
325 |
startTime = time.time()
|
@@ -386,8 +388,6 @@ def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTa
|
|
386 |
user_evaluation_variables.TASK_COCOIDs = cocoIDs
|
387 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'task-oriented'
|
388 |
|
389 |
-
st.write("Task-oriented Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
|
390 |
-
|
391 |
def download_and_zip_images(zipImagePath, images, captions, imageType):
|
392 |
if imageType == 'object':
|
393 |
csvFileName = 'object_prompts.csv'
|
|
|
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,
|
|
|
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,
|
|
|
321 |
user_evaluation_variables.OCCUPATION_CAPTIONS = occupationCaptions
|
322 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'general'
|
323 |
|
324 |
+
|
325 |
|
326 |
def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTab):
|
327 |
startTime = time.time()
|
|
|
388 |
user_evaluation_variables.TASK_COCOIDs = cocoIDs
|
389 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'task-oriented'
|
390 |
|
|
|
|
|
391 |
def download_and_zip_images(zipImagePath, images, captions, imageType):
|
392 |
if imageType == 'object':
|
393 |
csvFileName = 'object_prompts.csv'
|