Spaces:
Sleeping
Sleeping
Commit
·
8cdaf72
1
Parent(s):
2141c17
dir add
Browse files
app.py
CHANGED
|
@@ -40,6 +40,7 @@ logger = logging.getLogger("code_compass")
|
|
| 40 |
logger.info("Checking for model...")
|
| 41 |
if not os.path.exists("models/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf"):
|
| 42 |
logger.info("Downloading model...")
|
|
|
|
| 43 |
os.system("wget -q https://huggingface.co/bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf -O models/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf")
|
| 44 |
|
| 45 |
|
|
|
|
| 40 |
logger.info("Checking for model...")
|
| 41 |
if not os.path.exists("models/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf"):
|
| 42 |
logger.info("Downloading model...")
|
| 43 |
+
Path("models").mkdir(parents=True, exist_ok=True)
|
| 44 |
os.system("wget -q https://huggingface.co/bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf -O models/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf")
|
| 45 |
|
| 46 |
|