Cran-May commited on
Commit
abc8209
·
1 Parent(s): 7af42ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -8,6 +8,24 @@ import time
8
  import sys
9
 
10
  from huggingface_hub import snapshot_download
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  from llama_cpp import Llama
12
 
13
 
 
8
  import sys
9
 
10
  from huggingface_hub import snapshot_download
11
+
12
+ git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git
13
+ cd llama-cpp-python
14
+
15
+ # Upgrade pip (required for editable mode)
16
+ pip install --upgrade pip
17
+
18
+ # Install with pip
19
+ pip install -e .
20
+
21
+ # to install all optional dependencies
22
+ pip install -e .[all]
23
+
24
+ # to clear the local build cache
25
+ make clean
26
+
27
+ cd ..
28
+
29
  from llama_cpp import Llama
30
 
31