Nymbo commited on
Commit
bb22cbf
·
verified ·
1 Parent(s): 4ee3fc5

implementing autodoc and simplifying context

Browse files
Files changed (1) hide show
  1. Modules/Memory_Manager.py +2 -1
Modules/Memory_Manager.py CHANGED
@@ -10,7 +10,8 @@ from typing import Annotated, Dict, List, Literal, Optional
10
  import gradio as gr
11
  from ._docstrings import autodoc
12
 
13
- MEMORY_FILE = os.path.join(os.path.dirname(__file__), "memories.json")
 
14
  _MEMORY_LOCK = threading.RLock()
15
  _MAX_MEMORIES = 10_000
16
 
 
10
  import gradio as gr
11
  from ._docstrings import autodoc
12
 
13
+ _MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
14
+ MEMORY_FILE = os.path.join(os.path.dirname(_MODULE_DIR), "memories.json")
15
  _MEMORY_LOCK = threading.RLock()
16
  _MAX_MEMORIES = 10_000
17