Spaces:
Sleeping
Sleeping
qqubb
commited on
Commit
·
941a624
1
Parent(s):
f9b174b
add check for high_risk_ai_system
Browse files- compliance_analysis.py +2 -1
compliance_analysis.py
CHANGED
@@ -119,7 +119,8 @@ 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 |
-
|
|
|
123 |
|
124 |
if dispositive_variables['ai_project_type']['ai_system'] == True:
|
125 |
for value in project_cc_yaml['high_risk_ai_system']:
|
|
|
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']:
|