Spaces:
Sleeping
Sleeping
fixed any() error
Browse files- tab_manager.py +2 -2
tab_manager.py
CHANGED
@@ -94,7 +94,7 @@ 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 |
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:
|
@@ -164,7 +164,7 @@ 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 |
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'
|
169 |
' to train the model. Incompatible image resolutions may result in noisy output images', icon="π¨")
|
170 |
else:
|
|
|
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:
|
|
|
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 resolution is 1 number greater 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:
|