Spaces:
Sleeping
Sleeping
Logeswaransr
commited on
Update initialize.py
Browse files- initialize.py +6 -0
initialize.py
CHANGED
@@ -6,6 +6,12 @@ from haystack.components.builders import PromptBuilder
|
|
6 |
from haystack.components.generators import HuggingFaceTGIGenerator
|
7 |
from haystack import Pipeline
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
def init_doc_store(path, files):
|
10 |
docs = []
|
11 |
for file in files:
|
|
|
6 |
from haystack.components.generators import HuggingFaceTGIGenerator
|
7 |
from haystack import Pipeline
|
8 |
|
9 |
+
import sys
|
10 |
+
import subprocess
|
11 |
+
|
12 |
+
def install(name):
|
13 |
+
subprocess.call([sys.executable, '-m', 'pip', 'install', name])
|
14 |
+
|
15 |
def init_doc_store(path, files):
|
16 |
docs = []
|
17 |
for file in files:
|