Spaces:
Runtime error
Runtime error
Update components/CodriaoCore.py
Browse files
components/CodriaoCore.py
CHANGED
@@ -24,13 +24,14 @@ from components.multi_model_analyzer import MultiAgentSystem
|
|
24 |
|
25 |
# Codriao's enhanced modules
|
26 |
from codriao_tb_module import CodriaoHealthModule
|
27 |
-
from
|
28 |
from ethical_filter import EthicalFilter
|
29 |
from results_store import save_result
|
30 |
|
31 |
# Utilities
|
32 |
from utils.database import Database
|
33 |
from utils.logger import logger
|
|
|
34 |
|
35 |
class CodriaoCore:
|
36 |
def __init__(self, config_path: str = "config.json"):
|
@@ -44,6 +45,10 @@ class CodriaoCore:
|
|
44 |
self.http_session = aiohttp.ClientSession()
|
45 |
self.database = Database()
|
46 |
|
|
|
|
|
|
|
|
|
47 |
# Cognitive & ethical subsystems
|
48 |
self.sentiment_analyzer = EnhancedSentimentAnalyzer()
|
49 |
self.self_improving_ai = SelfImprovingAI()
|
|
|
24 |
|
25 |
# Codriao's enhanced modules
|
26 |
from codriao_tb_module import CodriaoHealthModule
|
27 |
+
from secure_memory_loader import load_secure_memory_module
|
28 |
from ethical_filter import EthicalFilter
|
29 |
from results_store import save_result
|
30 |
|
31 |
# Utilities
|
32 |
from utils.database import Database
|
33 |
from utils.logger import logger
|
34 |
+
from utils.secure_memory_loader import load_secure_memory_module
|
35 |
|
36 |
class CodriaoCore:
|
37 |
def __init__(self, config_path: str = "config.json"):
|
|
|
45 |
self.http_session = aiohttp.ClientSession()
|
46 |
self.database = Database()
|
47 |
|
48 |
+
# 🧠 Replace static SecureMemory with dynamic, temp version
|
49 |
+
SecureMemorySession = load_secure_memory_module()
|
50 |
+
self.secure_memory = SecureMemorySession(self._encryption_key)
|
51 |
+
|
52 |
# Cognitive & ethical subsystems
|
53 |
self.sentiment_analyzer = EnhancedSentimentAnalyzer()
|
54 |
self.self_improving_ai = SelfImprovingAI()
|