mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
Add transformers package into Khoj app to run image search
This commit is contained in:
parent
ffbf15eff8
commit
b9a54c03ee
1 changed files with 5 additions and 3 deletions
|
@ -2,8 +2,12 @@
|
||||||
from os.path import join
|
from os.path import join
|
||||||
from platform import system
|
from platform import system
|
||||||
from PyInstaller.utils.hooks import copy_metadata
|
from PyInstaller.utils.hooks import copy_metadata
|
||||||
|
import sysconfig
|
||||||
|
|
||||||
datas = [('src/interface/web', 'src/interface/web')]
|
datas = [
|
||||||
|
('src/interface/web', 'src/interface/web'),
|
||||||
|
(f'{sysconfig.get_paths()["purelib"]}/transformers', 'transformers')
|
||||||
|
]
|
||||||
datas += copy_metadata('tqdm')
|
datas += copy_metadata('tqdm')
|
||||||
datas += copy_metadata('regex')
|
datas += copy_metadata('regex')
|
||||||
datas += copy_metadata('requests')
|
datas += copy_metadata('requests')
|
||||||
|
@ -12,10 +16,8 @@ datas += copy_metadata('filelock')
|
||||||
datas += copy_metadata('numpy')
|
datas += copy_metadata('numpy')
|
||||||
datas += copy_metadata('tokenizers')
|
datas += copy_metadata('tokenizers')
|
||||||
|
|
||||||
|
|
||||||
block_cipher = None
|
block_cipher = None
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['src/main.py'],
|
['src/main.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
|
|
Loading…
Reference in a new issue