Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from main import run_analysis # Your existing analysis logic | |
| def analyze(repo_url): | |
| if not repo_url.strip(): | |
| return "⚠️ Please enter a valid GitHub URL." | |
| return run_analysis(repo_url) | |
| demo = gr.Interface( | |
| fn=analyze, | |
| inputs=gr.Textbox(label="GitHub Repo URL", placeholder="https://github.com/username/repo"), | |
| outputs=gr.Markdown(label="Analysis Result"), | |
| title="🔍 GitHub Repository Analyzer", | |
| description="Paste a GitHub repo URL and get a smart structural analysis powered by LLMs." | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |