qqubb commited on
Commit
ef62188
·
1 Parent(s): 3401323

update message in check_intended_purpose

Browse files
.gitignore CHANGED
@@ -1,4 +1,5 @@
1
  __pycache__
2
  compliancecards.code-workspace
3
  .ipynb_checkpoints
4
- *.ipynb
 
 
1
  __pycache__
2
  compliancecards.code-workspace
3
  .ipynb_checkpoints
4
+ *.ipynb
5
+ __pycache__/*
__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
 
__pycache__/utils.cpython-310.pyc CHANGED
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
 
compliance_analysis.py CHANGED
@@ -254,7 +254,7 @@ def check_intended_purpose(dispositive_variables, project_cc, other_cc):
254
 
255
  for purpose in project_intended_purposes:
256
  if purpose not in dataset_intended_purposes:
257
- dispositive_variables['msg'].append(f"You are not compliant because {purpose} is not a valid purpose")
258
 
259
  # Now do the exact same thing for all models
260
 
@@ -266,7 +266,7 @@ def check_intended_purpose(dispositive_variables, project_cc, other_cc):
266
 
267
  for purpose in project_intended_purposes:
268
  if purpose not in model_intended_purposes:
269
- dispositive_variables['msg'].append(f"You are not compliant because {purpose} is not a valid purpose")
270
 
271
  dispositive_variables['intended_purposes'] = project_intended_purposes
272
 
 
254
 
255
  for purpose in project_intended_purposes:
256
  if purpose not in dataset_intended_purposes:
257
+ dispositive_variables['msg'].append(f"You are not compliant because {purpose} is not a valid purpose for the dataset")
258
 
259
  # Now do the exact same thing for all models
260
 
 
266
 
267
  for purpose in project_intended_purposes:
268
  if purpose not in model_intended_purposes:
269
+ dispositive_variables['msg'].append(f"You are not compliant because {purpose} is not a valid purpose for the model")
270
 
271
  dispositive_variables['intended_purposes'] = project_intended_purposes
272
 
data_cc.yaml CHANGED
@@ -26,7 +26,7 @@ intended_purpose:
26
  emotion_recognition:
27
  article: 'Art. 6(2); Annex III(1)(c)'
28
  verbose: 'This dataset is appropriate to use for AI projects involving emotion recognition'
29
- value: !!bool false
30
  critical_infrastructure:
31
  article: 'Art. 6(2); Annex III(2)'
32
  verbose: 'This dataset is appropriate to use for AI projects involving safety components in the management and operation of critical digital infrastructure, road traffic, or in the supply of water, gas, heating or electricity'
 
26
  emotion_recognition:
27
  article: 'Art. 6(2); Annex III(1)(c)'
28
  verbose: 'This dataset is appropriate to use for AI projects involving emotion recognition'
29
+ value: !!bool true
30
  critical_infrastructure:
31
  article: 'Art. 6(2); Annex III(2)'
32
  verbose: 'This dataset is appropriate to use for AI projects involving safety components in the management and operation of critical digital infrastructure, road traffic, or in the supply of water, gas, heating or electricity'
model_cc.yaml CHANGED
@@ -26,11 +26,11 @@ intended_purpose:
26
  emotion_recognition:
27
  article: 'Art. 6(2); Annex III(1)(c)'
28
  verbose: 'This model is appropriate to use for AI projects involving emotion recognition'
29
- value: !!bool false
30
  critical_infrastructure:
31
  article: 'Art. 6(2); Annex III(2)'
32
  verbose: 'This model is appropriate to use for AI projects involving safety components in the management and operation of critical digital infrastructure, road traffic, or in the supply of water, gas, heating or electricity'
33
- value: !!bool false
34
  admission:
35
  article: 'Art. 6(2); Annex III(3)(a)'
36
  verbose: 'This model is appropriate to use for AI projects involving the determination of access or admission or to assigning natural persons to educational and vocational training institutions at all levels'
 
26
  emotion_recognition:
27
  article: 'Art. 6(2); Annex III(1)(c)'
28
  verbose: 'This model is appropriate to use for AI projects involving emotion recognition'
29
+ value: !!bool true
30
  critical_infrastructure:
31
  article: 'Art. 6(2); Annex III(2)'
32
  verbose: 'This model is appropriate to use for AI projects involving safety components in the management and operation of critical digital infrastructure, road traffic, or in the supply of water, gas, heating or electricity'
33
+ value: !!bool true
34
  admission:
35
  article: 'Art. 6(2); Annex III(3)(a)'
36
  verbose: 'This model is appropriate to use for AI projects involving the determination of access or admission or to assigning natural persons to educational and vocational training institutions at all levels'
utils.py CHANGED
@@ -1,5 +1,3 @@
1
- import yaml
2
-
3
  # We could probably combine set_type, set_operator_role_and_location, and set_eu_market_status into a single function that sets all project_variables
4
  # We will have to add a couple other things to that function as well
5
 
 
 
 
1
  # We could probably combine set_type, set_operator_role_and_location, and set_eu_market_status into a single function that sets all project_variables
2
  # We will have to add a couple other things to that function as well
3