mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix gpt4all import error in Desktop builds (#356)
* Add gpt4all to imports via sysconfig path
This commit is contained in:
parent
4b0639cfbd
commit
12cfb48f16
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,8 @@ datas = [
|
||||||
('src/khoj/interface/web', 'khoj/interface/web'),
|
('src/khoj/interface/web', 'khoj/interface/web'),
|
||||||
(f'{sysconfig.get_paths()["purelib"]}/transformers', 'transformers'),
|
(f'{sysconfig.get_paths()["purelib"]}/transformers', 'transformers'),
|
||||||
(f'{sysconfig.get_paths()["purelib"]}/langchain', 'langchain'),
|
(f'{sysconfig.get_paths()["purelib"]}/langchain', 'langchain'),
|
||||||
(f'{sysconfig.get_paths()["purelib"]}/PIL', 'PIL')
|
(f'{sysconfig.get_paths()["purelib"]}/PIL', 'PIL'),
|
||||||
|
(f'{sysconfig.get_paths()["purelib"]}/gpt4all', 'gpt4all'),
|
||||||
]
|
]
|
||||||
datas += copy_metadata('torch')
|
datas += copy_metadata('torch')
|
||||||
datas += copy_metadata('tqdm')
|
datas += copy_metadata('tqdm')
|
||||||
|
@ -22,7 +23,6 @@ datas += copy_metadata('pillow')
|
||||||
datas += copy_metadata('huggingface_hub')
|
datas += copy_metadata('huggingface_hub')
|
||||||
datas += copy_metadata('safetensors')
|
datas += copy_metadata('safetensors')
|
||||||
datas += copy_metadata('pyyaml')
|
datas += copy_metadata('pyyaml')
|
||||||
datas += copy_metadata('gpt4all')
|
|
||||||
|
|
||||||
block_cipher = None
|
block_cipher = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue