Add transformers package into Khoj app to run image search

This commit is contained in:
Debanjum Singh Solanky 2022-08-19 18:42:49 +03:00
parent ffbf15eff8
commit b9a54c03ee

View file

@ -2,8 +2,12 @@
from os.path import join
from platform import system
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('regex')
datas += copy_metadata('requests')
@ -12,10 +16,8 @@ datas += copy_metadata('filelock')
datas += copy_metadata('numpy')
datas += copy_metadata('tokenizers')
block_cipher = None
a = Analysis(
['src/main.py'],
pathex=[],