Spaces:
Sleeping
Sleeping
qqubb
commited on
Commit
·
90fa1b0
1
Parent(s):
e298748
update check_excepted
Browse files- .gitignore +1 -0
- __pycache__/compliance_analysis.cpython-310.pyc +0 -0
- __pycache__/utils.cpython-310.pyc +0 -0
- utils.py +3 -1
.gitignore
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
__pycache__/
|
|
|
2 |
compliancecards.code-workspace
|
3 |
.ipynb_checkpoints
|
4 |
*.ipynb
|
|
|
1 |
__pycache__/
|
2 |
+
*.pyc
|
3 |
compliancecards.code-workspace
|
4 |
.ipynb_checkpoints
|
5 |
*.ipynb
|
__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
|
|
utils.py
CHANGED
@@ -54,7 +54,9 @@ def check_within_scope_act(dispositive_variables, project_cc_yaml):
|
|
54 |
|
55 |
def check_excepted(dispositive_variables, project_cc_yaml):
|
56 |
|
57 |
-
if (project_cc_yaml['excepted']['
|
|
|
|
|
58 |
project_cc_yaml['excepted']['pre_market']['value'] or
|
59 |
(project_cc_yaml['ai_system']['ai_system']['value'] == True and
|
60 |
project_cc_yaml['excepted']['open_source_ai_model']['value'] == True) or
|
|
|
54 |
|
55 |
def check_excepted(dispositive_variables, project_cc_yaml):
|
56 |
|
57 |
+
if( (project_cc_yaml['ai_system']['ai_system']['value'] == True and project_cc_yaml['excepted']['military']['value']) or
|
58 |
+
(project_cc_yaml['ai_system']['ai_system']['value'] == True and project_cc_yaml['excepted']['military_use']['value']) or
|
59 |
+
project_cc_yaml['excepted']['scientific']['value'] or
|
60 |
project_cc_yaml['excepted']['pre_market']['value'] or
|
61 |
(project_cc_yaml['ai_system']['ai_system']['value'] == True and
|
62 |
project_cc_yaml['excepted']['open_source_ai_model']['value'] == True) or
|