Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|