Update analyzer.py
Browse files- analyzer.py +4 -0
analyzer.py
CHANGED
@@ -2,8 +2,12 @@ import openai
|
|
2 |
import os
|
3 |
import json
|
4 |
import re
|
|
|
5 |
from typing import Tuple
|
6 |
|
|
|
|
|
|
|
7 |
def analyze_code(code: str) -> str:
|
8 |
"""
|
9 |
Uses qwen2.5-coder-7b-instruct-awq model to analyze the given code.
|
|
|
2 |
import os
|
3 |
import json
|
4 |
import re
|
5 |
+
import logging
|
6 |
from typing import Tuple
|
7 |
|
8 |
+
# Setup logger
|
9 |
+
logger = logging.getLogger(__name__)
|
10 |
+
|
11 |
def analyze_code(code: str) -> str:
|
12 |
"""
|
13 |
Uses qwen2.5-coder-7b-instruct-awq model to analyze the given code.
|