-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheaders.py
41 lines (37 loc) · 1.04 KB
/
headers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import subprocess
def run_pip_installations():
packages = [
"langchain-unstructured",
"unstructured-client",
"chromadb",
"langchain-chroma",
"pytesseract",
"backoff",
"chromadb",
"langgraph",
"python-pptx",
"unstructured[pptx]",
"Cmake",
"poppler-utils",
"--upgrade setuptools wheel",
"tesseract-ocr",
"libreoffice",
"pytesseract Pillow",
"langchain_core",
"bitsandbytes",
"--upgrade langchain-huggingface",
"unstructured-ingest",
"cffi --only-binary :all:",
"python-libmagic",
"python-poppler",
"--upgrade nltk",
"unstructured[local-inference]"
"streamlit"
"boto3"
"json"
"langchain-aws"
]
# Run pip commands to install each package
for package in packages:
print(f"Installing {package}...")
subprocess.run(f"!pip install {package}", shell=True, check=True)