Spaces:
Running
Running
Update tab_manager.py
Browse files- tab_manager.py +6 -6
tab_manager.py
CHANGED
@@ -94,9 +94,9 @@ def general_bias_eval_setup(tab, modelID, imagesTab):
|
|
94 |
st.error('Looks like you have entered non-numeric values! '
|
95 |
'Please enter numeric values in the table above', icon="π¨")
|
96 |
# elif not all([check_for_power_of_two(int(GENValTable["GEN Values"][2])), int(GENValTable["GEN Values"][2]) >= 8]):
|
97 |
-
elif any([int(GENValTable["GEN Values"][2]), int(GENValTable["GEN Values"][3])]) < 8:
|
98 |
-
|
99 |
-
|
100 |
else:
|
101 |
if st.button('Evaluate!', key="EVAL_BUTTON_GEN"):
|
102 |
initiate_general_bias_evaluation(tab, modelID, [GENValTable, GENCheckTable], imagesTab)
|
@@ -164,9 +164,9 @@ def task_oriented_bias_eval_setup(tab, modelID, imagesTab):
|
|
164 |
TOValTable["TO Values"][2].isnumeric(), TOValTable["TO Values"][3].isnumeric()]):
|
165 |
st.error('Looks like you have entered non-numeric values! '
|
166 |
'Please enter numeric values in the table above', icon="π¨")
|
167 |
-
elif any([int(TOValTable["TO Values"][2]), int(TOValTable["TO Values"][3])]) < 8:
|
168 |
-
|
169 |
-
|
170 |
else:
|
171 |
if st.button('Evaluate!', key="EVAL_BUTTON_TO"):
|
172 |
if len(target) > 0:
|
|
|
94 |
st.error('Looks like you have entered non-numeric values! '
|
95 |
'Please enter numeric values in the table above', icon="π¨")
|
96 |
# elif not all([check_for_power_of_two(int(GENValTable["GEN Values"][2])), int(GENValTable["GEN Values"][2]) >= 8]):
|
97 |
+
# elif any([int(GENValTable["GEN Values"][2]), int(GENValTable["GEN Values"][3])]) < 8:
|
98 |
+
# st.error('Please ensure that your image resolution is 1 number greater than 8. Consult the model card to find the size of the images used'
|
99 |
+
# ' to train the model. Incompatible image resolutions may result in noisy output images', icon="π¨")
|
100 |
else:
|
101 |
if st.button('Evaluate!', key="EVAL_BUTTON_GEN"):
|
102 |
initiate_general_bias_evaluation(tab, modelID, [GENValTable, GENCheckTable], imagesTab)
|
|
|
164 |
TOValTable["TO Values"][2].isnumeric(), TOValTable["TO Values"][3].isnumeric()]):
|
165 |
st.error('Looks like you have entered non-numeric values! '
|
166 |
'Please enter numeric values in the table above', icon="π¨")
|
167 |
+
# elif any([int(TOValTable["TO Values"][2]), int(TOValTable["TO Values"][3])]) < 8:
|
168 |
+
# st.error('Please ensure that your image width and heightgreater than 8. Consult the model card to find the size of the images used'
|
169 |
+
# ' to train the model. Incompatible image resolutions may result in noisy output images', icon="π¨")
|
170 |
else:
|
171 |
if st.button('Evaluate!', key="EVAL_BUTTON_TO"):
|
172 |
if len(target) > 0:
|