Spaces:
Sleeping
Sleeping
Added EVAL ID write statements
Browse files- tab_manager.py +4 -2
tab_manager.py
CHANGED
@@ -318,7 +318,8 @@ def initiate_general_bias_evaluation(tab, modelID, specs, imagesTab):
|
|
318 |
user_evaluation_variables.OCCUPATION_IMAGES = occupationImages
|
319 |
user_evaluation_variables.OCCUPATION_CAPTIONS = occupationCaptions
|
320 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'general'
|
321 |
-
|
|
|
322 |
|
323 |
def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTab):
|
324 |
startTime = time.time()
|
@@ -383,9 +384,10 @@ def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTa
|
|
383 |
user_evaluation_variables.TASK_IMAGES = TASKImages
|
384 |
user_evaluation_variables.TASK_CAPTIONS = TASKCaptions
|
385 |
user_evaluation_variables.TASK_COCOIDs = cocoIDs
|
386 |
-
|
387 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'task-oriented'
|
388 |
|
|
|
|
|
389 |
def download_and_zip_images(zipImagePath, images, captions, imageType):
|
390 |
if imageType == 'object':
|
391 |
csvFileName = 'object_prompts.csv'
|
|
|
318 |
user_evaluation_variables.OCCUPATION_IMAGES = occupationImages
|
319 |
user_evaluation_variables.OCCUPATION_CAPTIONS = occupationCaptions
|
320 |
user_evaluation_variables.CURRENT_EVAL_TYPE = 'general'
|
321 |
+
|
322 |
+
st.write("General Bias Evaluation ID:\t", user_evaluation_variables.EVAL_ID)
|
323 |
|
324 |
def initiate_task_oriented_bias_evaluation(tab, modelID, specs, target, imagesTab):
|
325 |
startTime = time.time()
|
|
|
384 |
user_evaluation_variables.TASK_IMAGES = TASKImages
|
385 |
user_evaluation_variables.TASK_CAPTIONS = TASKCaptions
|
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'
|