Spaces:
Sleeping
Sleeping
Commit
·
2141c17
1
Parent(s):
9ca316e
Updated app
Browse files
app.py
CHANGED
|
@@ -37,11 +37,16 @@ def setup_logger():
|
|
| 37 |
setup_logger()
|
| 38 |
logger = logging.getLogger("code_compass")
|
| 39 |
# Global repository handler instance
|
| 40 |
-
|
| 41 |
if not os.path.exists("models/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf"):
|
|
|
|
| 42 |
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")
|
| 43 |
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
def process_repository(input_type, github_url, zip_file):
|
| 46 |
"""Process repository based on input type"""
|
| 47 |
|
|
|
|
| 37 |
setup_logger()
|
| 38 |
logger = logging.getLogger("code_compass")
|
| 39 |
# Global repository handler instance
|
| 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 |
|
| 46 |
+
|
| 47 |
+
repo_handler = RepositoryHandler()
|
| 48 |
+
|
| 49 |
+
|
| 50 |
def process_repository(input_type, github_url, zip_file):
|
| 51 |
"""Process repository based on input type"""
|
| 52 |
|