Spaces:
Sleeping
Sleeping
Update src/components/ai_core.py
Browse files
src/components/ai_core.py
CHANGED
|
@@ -140,8 +140,14 @@ class AICore:
|
|
| 140 |
|
| 141 |
try:
|
| 142 |
self.cognitive_processor = CognitiveProcessor()
|
| 143 |
-
except
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|