Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,8 @@ def analyze_github_repo(repo_input, github_token=None):
|
|
50 |
max_prs = 4
|
51 |
|
52 |
with tempfile.TemporaryDirectory() as temp_dir:
|
53 |
-
|
|
|
54 |
|
55 |
progress_md += "π¬ Analyzing code structure... \n"
|
56 |
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
@@ -76,11 +77,6 @@ def analyze_github_repo(repo_input, github_token=None):
|
|
76 |
pr_analysis.get('summary', '')
|
77 |
)
|
78 |
|
79 |
-
repo_info = {
|
80 |
-
"owner": owner,
|
81 |
-
"repo_name": repo_name,
|
82 |
-
}
|
83 |
-
|
84 |
progress_md += "π Generating report... \n"
|
85 |
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
86 |
report = generate_report(repo_info, code_analysis, issues_analysis, pr_analysis, final_analysis)
|
|
|
50 |
max_prs = 4
|
51 |
|
52 |
with tempfile.TemporaryDirectory() as temp_dir:
|
53 |
+
repo_info = clone_repo(owner, repo_name, temp_dir)
|
54 |
+
repo_path = repo_info["local_path"]
|
55 |
|
56 |
progress_md += "π¬ Analyzing code structure... \n"
|
57 |
yield progress_md, gr.update(visible=True), gr.update(visible=False)
|
|
|
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, final_analysis)
|