Spaces:
Running
Running
Update github_repo_analyzer.py
Browse files- github_repo_analyzer.py +1 -2
github_repo_analyzer.py
CHANGED
@@ -191,7 +191,7 @@ def parse_llm_response(response):
|
|
191 |
json_str = response[start:end]
|
192 |
return json.loads(json_str)
|
193 |
except (ValueError, json.JSONDecodeError):
|
194 |
-
print(f"Warning: Failed to parse LLM response as JSON. Response: {response
|
195 |
return []
|
196 |
|
197 |
def cluster_and_filter_items(items, n_clusters=5, n_items=10):
|
@@ -609,5 +609,4 @@ def generate_report(repo_info, code_analysis, issues_analysis, pr_analysis, fina
|
|
609 |
report += "No structured pull requests analysis available.\n"
|
610 |
|
611 |
report += f"\n## Synthesis and Recommendations\n{final_analysis}\n"
|
612 |
-
print(report)
|
613 |
return report
|
|
|
191 |
json_str = response[start:end]
|
192 |
return json.loads(json_str)
|
193 |
except (ValueError, json.JSONDecodeError):
|
194 |
+
print(f"Warning: Failed to parse LLM response as JSON. Response: {response}...")
|
195 |
return []
|
196 |
|
197 |
def cluster_and_filter_items(items, n_clusters=5, n_items=10):
|
|
|
609 |
report += "No structured pull requests analysis available.\n"
|
610 |
|
611 |
report += f"\n## Synthesis and Recommendations\n{final_analysis}\n"
|
|
|
612 |
return report
|