Skip to content

Commit

Permalink
Merge pull request #274 from MLSysOps/fix/lancedb-init
Browse files Browse the repository at this point in the history
[MRG] Fixed the memory init before config error
  • Loading branch information
HuaizhengZhang authored Nov 28, 2024
2 parents ea7393b + ff809bf commit b9765e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mle/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
startup_web,
print_in_box,
)
from mle.utils import LanceDBMemory, list_files, read_file
from mle.utils import CodeChunker
from mle.utils import LanceDBMemory, list_files, read_file

console = Console()
memory = LanceDBMemory(os.getcwd())


@click.group()
Expand Down Expand Up @@ -199,6 +198,7 @@ def chat(model, build_mem):
if not check_config(console):
return

memory = LanceDBMemory(os.getcwd())
if build_mem:
working_dir = os.getcwd()
table_name = 'mle_chat_' + working_dir.split('/')[-1]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rich
click
py7zr~=0.22.0
openai~=1.34.0
openai
pyyaml
kaggle
fastapi
Expand Down

0 comments on commit b9765e7

Please sign in to comment.