Spaces:
Sleeping
Sleeping
Stefan Ivchenko
commited on
Commit
·
fca5c55
1
Parent(s):
0e8c6f1
killer
Browse files- app.py +6 -0
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -2,6 +2,12 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
from llama_cpp import Llama
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Download your GGUF from HF Hub
|
| 6 |
model_path = hf_hub_download(
|
| 7 |
repo_id="StefanCoder1/Scalable-tuned-GGUF",
|
|
|
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
from llama_cpp import Llama
|
| 4 |
|
| 5 |
+
import subprocess
|
| 6 |
+
import sys, platform
|
| 7 |
+
from importlib import metadata as md
|
| 8 |
+
|
| 9 |
+
subprocess.run("pip install -V llama_cpp_python==0.3.15", shell=True)
|
| 10 |
+
|
| 11 |
# Download your GGUF from HF Hub
|
| 12 |
model_path = hf_hub_download(
|
| 13 |
repo_id="StefanCoder1/Scalable-tuned-GGUF",
|
requirements.txt
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
-
llama-cpp-python
|
| 2 |
huggingface_hub
|
|
|
|
|
|
|
| 1 |
huggingface_hub
|