Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,18 +68,18 @@ def analyze_github_repo(repo_input, github_token=None):
|
|
| 68 |
prs_data = analyze_pull_requests(github_repo, max_prs)
|
| 69 |
pr_analysis = llm_analyze_prs(client, prs_data, repo_url)
|
| 70 |
|
| 71 |
-
progress_md += "π§ Synthesizing findings... \n"
|
| 72 |
-
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
| 73 |
-
final_analysis = llm_synthesize_findings(
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
)
|
| 79 |
|
| 80 |
progress_md += "π Generating report... \n"
|
| 81 |
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
| 82 |
-
report = generate_report(repo_info, code_analysis, issues_analysis, pr_analysis
|
| 83 |
|
| 84 |
# Return the final Markdown report
|
| 85 |
yield progress_md + "β
Analysis complete!", gr.update(visible=False), gr.update(visible=True, value=report)
|
|
|
|
| 68 |
prs_data = analyze_pull_requests(github_repo, max_prs)
|
| 69 |
pr_analysis = llm_analyze_prs(client, prs_data, repo_url)
|
| 70 |
|
| 71 |
+
# progress_md += "π§ Synthesizing findings... \n"
|
| 72 |
+
# yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
| 73 |
+
# final_analysis = llm_synthesize_findings(
|
| 74 |
+
# client,
|
| 75 |
+
# code_analysis.get('llm_analysis', ''),
|
| 76 |
+
# issues_analysis.get('summary', ''),
|
| 77 |
+
# pr_analysis.get('summary', '')
|
| 78 |
+
# )
|
| 79 |
|
| 80 |
progress_md += "π Generating report... \n"
|
| 81 |
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
| 82 |
+
report = generate_report(repo_info, code_analysis, issues_analysis, pr_analysis)
|
| 83 |
|
| 84 |
# Return the final Markdown report
|
| 85 |
yield progress_md + "β
Analysis complete!", gr.update(visible=False), gr.update(visible=True, value=report)
|