Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,22 +9,22 @@ 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 |
|
|
|
|
| 9 |
|
| 10 |
from huggingface_hub import snapshot_download
|
| 11 |
|
| 12 |
+
os.system("git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git")
|
| 13 |
+
os.system("cd llama-cpp-python")
|
| 14 |
|
| 15 |
# Upgrade pip (required for editable mode)
|
| 16 |
+
os.system("pip install --upgrade pip")
|
| 17 |
|
| 18 |
# Install with pip
|
| 19 |
+
os.system("pip install -e .")
|
| 20 |
|
| 21 |
# to install all optional dependencies
|
| 22 |
+
os.system("pip install -e .[all]")
|
| 23 |
|
| 24 |
# to clear the local build cache
|
| 25 |
+
os.system("make clean")
|
| 26 |
|
| 27 |
+
os.system("cd ..")
|
| 28 |
|
| 29 |
from llama_cpp import Llama
|
| 30 |
|