Spaces:
Paused
Paused
Update AICoreAGIX_with_TB.py
Browse files- AICoreAGIX_with_TB.py +3 -1
AICoreAGIX_with_TB.py
CHANGED
@@ -164,7 +164,9 @@ def _identity_hash(self):
|
|
164 |
}
|
165 |
self.training_memory.append(training_event)
|
166 |
logger.info(f"[Codriao Learning] Stored new training sample. Feedback: {user_feedback or 'none'}")
|
167 |
-
|
|
|
|
|
168 |
def fine_tune_from_memory(self):
|
169 |
if not self.training_memory:
|
170 |
logger.info("[Codriao Training] No training data to learn from.")
|
|
|
164 |
}
|
165 |
self.training_memory.append(training_event)
|
166 |
logger.info(f"[Codriao Learning] Stored new training sample. Feedback: {user_feedback or 'none'}")
|
167 |
+
MAX_MEMORY = 1000
|
168 |
+
if len(self.training_memory) >= MAX_MEMORY:
|
169 |
+
self.training_memory.pop(0)
|
170 |
def fine_tune_from_memory(self):
|
171 |
if not self.training_memory:
|
172 |
logger.info("[Codriao Training] No training data to learn from.")
|