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

update check_excepted

Browse files
Files changed (1) hide show
  1. utils.py +5 -1
utils.py CHANGED
@@ -66,7 +66,11 @@ def check_within_scope_act(project_cc_yaml):
66
  return False
67
 
68
  def check_excepted(project_cc_yaml):
69
- if project_cc_yaml['excepted']['scientific'] or project_cc_yaml['excepted']['pre_market'] or (ai_system and project_cc_yaml['excepted']['open_source_ai_system']) or (gpai_model and project_cc_yaml['excepted']['open_source_gpai_system']):
 
 
 
 
70
  print("Your project falls into one of the exemptions from the Act.")
71
  return True
72
  else:
 
66
  return False
67
 
68
  def check_excepted(project_cc_yaml):
69
+ if (project_cc_yaml['excepted']['scientific'] or
70
+ project_cc_yaml['excepted']['pre_market'] or
71
+ (project_cc_yaml['ai_system']['ai_system']['value'] == True and project_cc_yaml['excepted']['open_source_ai_system']) or
72
+ (project_cc_yaml['gpai_model']['gpai_model']['value'] == True and project_cc_yaml['excepted']['open_source_gpai_system'])
73
+ ):
74
  print("Your project falls into one of the exemptions from the Act.")
75
  return True
76
  else: