implementing autodoc and simplifying context
Browse files
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 |
-
|
|
|
|
| 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 |
|