limit story context to avoid out of mem

This commit is contained in:
AccidentallyOnPurpose
2019-12-24 08:34:17 +00:00
committed by GitHub
parent 8e8896aa38
commit 3a6f5aa475
+3
View File
@@ -64,6 +64,9 @@ class Story:
def add_to_story(self, action, story_block):
self.actions.append(action)
self.results.append(story_block)
if (len(str(self)) > 3900): # (Fix some mem errors. From RTech, max story of 3900 characters for GTX 2080 ti 11GB
self.actions.pop(1)
self.results.pop(1)
def latest_result(self):