Update analyzer.py
Browse files- analyzer.py +2 -0
analyzer.py
CHANGED
@@ -39,8 +39,10 @@ def parse_llm_json_response(response: str):
|
|
39 |
json_str = response[start:end+1]
|
40 |
else:
|
41 |
json_str = response
|
|
|
42 |
return json.loads(json_str)
|
43 |
except Exception as e:
|
|
|
44 |
return {"error": f"Failed to parse JSON: {e}", "raw": response}
|
45 |
|
46 |
def combine_repo_files_for_llm(repo_dir="repo_files", output_file="combined_repo.txt"):
|
|
|
39 |
json_str = response[start:end+1]
|
40 |
else:
|
41 |
json_str = response
|
42 |
+
print("DEBUGGGGG json str ::: ",json_str)
|
43 |
return json.loads(json_str)
|
44 |
except Exception as e:
|
45 |
+
print("DEBUGGGGG error ::: ",e)
|
46 |
return {"error": f"Failed to parse JSON: {e}", "raw": response}
|
47 |
|
48 |
def combine_repo_files_for_llm(repo_dir="repo_files", output_file="combined_repo.txt"):
|