Spaces:
Sleeping
Sleeping
Commit
·
89a14da
1
Parent(s):
2ffa3b5
llama cpp fix attempt #2931304
Browse files- app.py +3 -0
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -11,6 +11,9 @@ import uuid
|
|
| 11 |
from pathlib import Path
|
| 12 |
from typing import List, Dict, Any
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
import llama_cpp
|
| 15 |
from huggingface_hub import hf_hub_download
|
| 16 |
from qdrant_client import QdrantClient
|
|
|
|
| 11 |
from pathlib import Path
|
| 12 |
from typing import List, Dict, Any
|
| 13 |
|
| 14 |
+
import subprocess, sys
|
| 15 |
+
subprocess.run([sys.executable, "-m", "pip", "install", "-q", "llama-cpp-python==0.3.12"], check=True)
|
| 16 |
+
|
| 17 |
import llama_cpp
|
| 18 |
from huggingface_hub import hf_hub_download
|
| 19 |
from qdrant_client import QdrantClient
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
gradio>=4.44.0
|
| 2 |
-
llama-cpp-python
|
| 3 |
qdrant-client>=1.9.1
|
| 4 |
huggingface_hub>=0.24.0
|
| 5 |
piper-tts>=1.2.0
|
|
|
|
| 1 |
gradio>=4.44.0
|
| 2 |
+
llama-cpp-python==0.3.12
|
| 3 |
qdrant-client>=1.9.1
|
| 4 |
huggingface_hub>=0.24.0
|
| 5 |
piper-tts>=1.2.0
|