sriramgs commited on
Commit
46a24a4
1 Parent(s): 65206e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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