Spaces:
Runtime error
Runtime error
mouliraj56
commited on
Commit
•
ccadf0a
1
Parent(s):
d8a525a
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os# for Chroma DB
|
2 |
+
os.system(f"git lfs install")
|
3 |
+
os.system(f"pip install torch torchvision torchaudio torchtext torchdata --extra-index-url https://download.pytorch.org/whl/cu118 -U")
|
4 |
+
os.system(f"pip install bitsandbytes sentencepiece fsspec gradio langchain einops scipy unstructured xformers sentence-transformers chromadb==0.3.29")
|
5 |
+
os.system(f"pip install git+https://github.com/huggingface/transformers.git -U")
|
6 |
+
os.system(f"pip install git+https://github.com/huggingface/accelerate.git -U")
|
7 |
+
os.system(f"pip install pydantic==1.10.11")
|
8 |
+
os.system(f"cp .venv/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cuda118.so .venv/lib/python3.8/site-packages/bitsandbytes/libbitsandbytes_cpu.so")
|
9 |
+
os.system(f"python run.py")
|