Spaces:
Sleeping
Sleeping
qqubb
commited on
Commit
·
8635703
1
Parent(s):
941a624
move high_risk_ai_system check before check_intended_purpose
Browse files
__pycache__/compliance_analysis.cpython-310.pyc
CHANGED
Binary files a/__pycache__/compliance_analysis.cpython-310.pyc and b/__pycache__/compliance_analysis.cpython-310.pyc differ
|
|
compliance_analysis.py
CHANGED
@@ -30,6 +30,9 @@ def check_overall_compliance_ui(cards):
|
|
30 |
"model_cc_pass": False,
|
31 |
"msg": []
|
32 |
}
|
|
|
|
|
|
|
33 |
|
34 |
# check intended purposes
|
35 |
for card in cards['data_files']:
|
@@ -119,9 +122,6 @@ def run_compliance_analysis_on_project(dispositive_variables, project_cc_yaml):
|
|
119 |
dispositive_variables['msg'].append("Your project cannot be both an AI system and a GPAI model. Please revise your Project CC accordingly.")
|
120 |
return dispositive_variables
|
121 |
|
122 |
-
if any(item['value'] for item in project_cc_yaml['high_risk_ai_system'].values()) == True:
|
123 |
-
dispositive_variables['ai_project_type']["high_risk_ai_system"] = True
|
124 |
-
|
125 |
if dispositive_variables['ai_project_type']['ai_system'] == True:
|
126 |
for value in project_cc_yaml['high_risk_ai_system']:
|
127 |
if value and sum(map(bool, [
|
|
|
30 |
"model_cc_pass": False,
|
31 |
"msg": []
|
32 |
}
|
33 |
+
|
34 |
+
if any(item['value'] for item in project_cc['high_risk_ai_system'].values()) == True:
|
35 |
+
dispositive_variables['ai_project_type']["high_risk_ai_system"] = True
|
36 |
|
37 |
# check intended purposes
|
38 |
for card in cards['data_files']:
|
|
|
122 |
dispositive_variables['msg'].append("Your project cannot be both an AI system and a GPAI model. Please revise your Project CC accordingly.")
|
123 |
return dispositive_variables
|
124 |
|
|
|
|
|
|
|
125 |
if dispositive_variables['ai_project_type']['ai_system'] == True:
|
126 |
for value in project_cc_yaml['high_risk_ai_system']:
|
127 |
if value and sum(map(bool, [
|