Spaces:
Runtime error
Runtime error
Update AICoreAGIX_with_TB.py
Browse files- AICoreAGIX_with_TB.py +6 -1
AICoreAGIX_with_TB.py
CHANGED
@@ -23,6 +23,8 @@ from utils.database import Database
|
|
23 |
from utils.logger import logger
|
24 |
from codriao_tb_module import CodriaoHealthModule
|
25 |
from fail_safe import AIFailsafeSystem
|
|
|
|
|
26 |
|
27 |
class AICoreAGIX:
|
28 |
def __init__(self, config_path: str = "config.json"):
|
@@ -75,7 +77,10 @@ def engage_lockdown_mode(self, reason="Unspecified anomaly"):
|
|
75 |
|
76 |
self.speech_engine = pyttsx3.init()
|
77 |
self.health_module = CodriaoHealthModule(ai_core=self)
|
|
|
78 |
|
|
|
|
|
79 |
def _load_config(self, config_path: str) -> dict:
|
80 |
"""Loads the configuration file."""
|
81 |
try:
|
@@ -87,7 +92,7 @@ def engage_lockdown_mode(self, reason="Unspecified anomaly"):
|
|
87 |
except json.JSONDecodeError as e:
|
88 |
logger.error(f"Error decoding JSON in config file: {config_path}, Error: {e}")
|
89 |
raise
|
90 |
-
|
91 |
def _initialize_vector_memory(self):
|
92 |
"""Initializes FAISS vector memory."""
|
93 |
return faiss.IndexFlatL2(768)
|
|
|
23 |
from utils.logger import logger
|
24 |
from codriao_tb_module import CodriaoHealthModule
|
25 |
from fail_safe import AIFailsafeSystem
|
26 |
+
from quarantine_engine import QuarantineEngine
|
27 |
+
from anomaly_score import AnomalyScorer
|
28 |
|
29 |
class AICoreAGIX:
|
30 |
def __init__(self, config_path: str = "config.json"):
|
|
|
77 |
|
78 |
self.speech_engine = pyttsx3.init()
|
79 |
self.health_module = CodriaoHealthModule(ai_core=self)
|
80 |
+
|
81 |
|
82 |
+
self.quarantine_engine = QuarantineEngine()
|
83 |
+
self.anomaly_scorer = AnomalyScorer()
|
84 |
def _load_config(self, config_path: str) -> dict:
|
85 |
"""Loads the configuration file."""
|
86 |
try:
|
|
|
92 |
except json.JSONDecodeError as e:
|
93 |
logger.error(f"Error decoding JSON in config file: {config_path}, Error: {e}")
|
94 |
raise
|
95 |
+
|
96 |
def _initialize_vector_memory(self):
|
97 |
"""Initializes FAISS vector memory."""
|
98 |
return faiss.IndexFlatL2(768)
|