Spaces:
Sleeping
Sleeping
ehristoforu
commited on
Commit
•
ea5f41e
1
Parent(s):
b235bb9
Update hf_launch.py
Browse files- hf_launch.py +3 -1
hf_launch.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import subprocess
|
2 |
import os
|
|
|
|
|
|
|
3 |
|
4 |
-
subprocess.run(["wget", "-O", "models/llama-2-7b-chat.ggmlv3.q2_K.bin", "https://huggingface.co/ehristoforu/LLMs/resolve/main/llama-2-7b-chat.ggmlv3.q2_K.bin"], check=True)
|
5 |
|
6 |
subprocess.run(["python", "webui.py"], check=True)
|
|
|
1 |
import subprocess
|
2 |
import os
|
3 |
+
from huggingface_hub import hf_hub_download
|
4 |
+
|
5 |
+
hf_hub_download(repo_id="ehristoforu/LLMs", filename="llama-2-7b-chat.ggmlv3.q2_K.bin", local_dir="models")
|
6 |
|
|
|
7 |
|
8 |
subprocess.run(["python", "webui.py"], check=True)
|