Upload app.py
Browse files
app.py
CHANGED
|
@@ -3,11 +3,11 @@ import select
|
|
| 3 |
import os
|
| 4 |
from mods.btn_reset import restart_space
|
| 5 |
|
| 6 |
-
if not os.path.exists('
|
| 7 |
from huggingface_hub import snapshot_download
|
| 8 |
-
os.mkdir("
|
| 9 |
os.mkdir("cache")
|
| 10 |
-
snapshot_download(repo_id='Limour/CausalLM-14B-GGUF', local_dir=r'
|
| 11 |
allow_patterns='causallm_14b.IQ3_XS.gguf')
|
| 12 |
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache')
|
| 13 |
|
|
|
|
| 3 |
import os
|
| 4 |
from mods.btn_reset import restart_space
|
| 5 |
|
| 6 |
+
if not os.path.exists('models/causallm_14b.IQ3_XS.gguf'):
|
| 7 |
from huggingface_hub import snapshot_download
|
| 8 |
+
os.mkdir("models")
|
| 9 |
os.mkdir("cache")
|
| 10 |
+
snapshot_download(repo_id='Limour/CausalLM-14B-GGUF', local_dir=r'models',
|
| 11 |
allow_patterns='causallm_14b.IQ3_XS.gguf')
|
| 12 |
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache')
|
| 13 |
|