Raiff1982 commited on
Commit
b5110af
·
verified ·
1 Parent(s): 18680e5

Update src/components/ai_core.py

Browse files
Files changed (1) hide show
  1. src/components/ai_core.py +8 -2
src/components/ai_core.py CHANGED
@@ -140,8 +140,14 @@ class AICore:
140
 
141
  try:
142
  self.cognitive_processor = CognitiveProcessor()
143
- except Exception:
144
- self.cognitive_processor = None
 
 
 
 
 
 
145
 
146
  try:
147
  self.defense_system = DefenseSystem(
 
140
 
141
  try:
142
  self.cognitive_processor = CognitiveProcessor()
143
+ except TypeError:
144
+ # Try with modes argument if required
145
+ try:
146
+ self.cognitive_processor = CognitiveProcessor(
147
+ modes=["scientific", "creative", "emotional", "quantum", "philosophical"]
148
+ )
149
+ except Exception:
150
+ self.cognitive_processor = None
151
 
152
  try:
153
  self.defense_system = DefenseSystem(