Spaces:
Sleeping
Sleeping
wlmbrown
commited on
Commit
·
aa34bd2
1
Parent(s):
ef62188
add draft high risk ai system code inside model analysis in compliance_analysis.py
Browse files- compliance_analysis.py +6 -1
- data_cc.yaml +1 -1
compliance_analysis.py
CHANGED
@@ -171,9 +171,14 @@ def run_compliance_analysis_on_data(dispositive_variables, data_cc_yaml):
|
|
171 |
# if not value:
|
172 |
# dispositive_variables['msg'].append(f"Because of the dataset represented by , this high-risk AI system fails the quality management requirements under Article 17.")
|
173 |
|
|
|
|
|
|
|
|
|
|
|
174 |
if dispositive_variables['ai_project_type']["gpai_model"] == True:
|
175 |
for value in data_cc_yaml['gpai_requirements']:
|
176 |
-
if data_cc_yaml['gpai_requirements'][f'{value}'] == True:
|
177 |
dispositive_variables['msg'].append(f"")
|
178 |
|
179 |
return dispositive_variables
|
|
|
171 |
# if not value:
|
172 |
# dispositive_variables['msg'].append(f"Because of the dataset represented by , this high-risk AI system fails the quality management requirements under Article 17.")
|
173 |
|
174 |
+
if dispositive_variables['ai_project_type']["ai_system"] == True:
|
175 |
+
for value in data_cc_yaml['high_risk_ai_system_requirements']:
|
176 |
+
if data_cc_yaml['high_risk_ai_system_requirements'][f'{value}'] == True:
|
177 |
+
dispositive_variables['msg'].append(f"")
|
178 |
+
|
179 |
if dispositive_variables['ai_project_type']["gpai_model"] == True:
|
180 |
for value in data_cc_yaml['gpai_requirements']:
|
181 |
+
if data_cc_yaml['gpai_requirements'][f'{value}'] == True: # should this be false? BM
|
182 |
dispositive_variables['msg'].append(f"")
|
183 |
|
184 |
return dispositive_variables
|
data_cc.yaml
CHANGED
@@ -58,7 +58,7 @@ intended_purpose:
|
|
58 |
|
59 |
# Metadata related to data-related requirements for high-risk AI systems
|
60 |
|
61 |
-
|
62 |
data_and_data_governance_data_governance:
|
63 |
article: 'Art. 10(1)-(2)'
|
64 |
verbose: 'The dataset was subject to data governance and management practices appropriate to the intended use case'
|
|
|
58 |
|
59 |
# Metadata related to data-related requirements for high-risk AI systems
|
60 |
|
61 |
+
high_risk_ai_system_requirements:
|
62 |
data_and_data_governance_data_governance:
|
63 |
article: 'Art. 10(1)-(2)'
|
64 |
verbose: 'The dataset was subject to data governance and management practices appropriate to the intended use case'
|