Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
from langchain.document_loaders import PyPDFLoader, OnlinePDFLoader
|
3 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
bash_command = '''\
|
4 |
+
CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir --verbose
|
5 |
+
'''
|
6 |
+
|
7 |
+
subprocess.run(bash_command, shell=True)
|
8 |
+
|
9 |
|
10 |
from langchain.document_loaders import PyPDFLoader, OnlinePDFLoader
|
11 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|