PraneshJs commited on
Commit
11503ad
·
verified ·
1 Parent(s): e147c33

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from agent import run_repo_review
3
+
4
+ def analyze(repo_url, brief):
5
+ if not repo_url.strip():
6
+ return "❌ Please enter a GitHub repository URL."
7
+ return run_repo_review(repo_url.strip(), brief.strip())
8
+
9
+ with gr.Blocks(title="CrewAI + Gemini GitHub Reviewer") as demo:
10
+ gr.Markdown("# 🤖 CrewAI + Google Gemini — GitHub Repo Reviewer")
11
+ gr.Markdown("Analyze, review, and explain any public GitHub repo using Google’s Gemini LLM and CrewAI multi-agents.")
12
+
13
+ repo_url = gr.Textbox(label="🔗 GitHub Repo URL", placeholder="https://github.com/user/project")
14
+ brief = gr.Textbox(label="🗒️ Brief (optional)", placeholder="Focus on security, docs, or general review...")
15
+ run_btn = gr.Button("🚀 Run Multi-Agent Review")
16
+ output = gr.Markdown(label="Report", show_copy_button=True)
17
+
18
+ run_btn.click(fn=analyze, inputs=[repo_url, brief], outputs=output)
19
+
20
+ if __name__ == "__main__":
21
+ demo.launch(server_name="0.0.0.0", server_port=7860)