File size: 995 Bytes
11503ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
from agent import run_repo_review

def analyze(repo_url, brief):
    if not repo_url.strip():
        return "โŒ Please enter a GitHub repository URL."
    return run_repo_review(repo_url.strip(), brief.strip())

with gr.Blocks(title="CrewAI + Gemini GitHub Reviewer") as demo:
    gr.Markdown("# ๐Ÿค– CrewAI + Google Gemini โ€” GitHub Repo Reviewer")
    gr.Markdown("Analyze, review, and explain any public GitHub repo using Googleโ€™s Gemini LLM and CrewAI multi-agents.")

    repo_url = gr.Textbox(label="๐Ÿ”— GitHub Repo URL", placeholder="https://github.com/user/project")
    brief = gr.Textbox(label="๐Ÿ—’๏ธ Brief (optional)", placeholder="Focus on security, docs, or general review...")
    run_btn = gr.Button("๐Ÿš€ Run Multi-Agent Review")
    output = gr.Markdown(label="Report", show_copy_button=True)

    run_btn.click(fn=analyze, inputs=[repo_url, brief], outputs=output)

if __name__ == "__main__":
    demo.launch(server_name="0.0.0.0", server_port=7860)