import gradio as gr from bug_detector import fix_code def run_bugfixer(code): fixed = fix_code(code) return fixed gr.Interface( fn=run_bugfixer, inputs=gr.Textbox(label="💥 Paste Buggy Code", lines=15), outputs=gr.Textbox(label="🛠️ Suggested Fixed Code", lines=15, interactive=True), # ✅ EDITABLE OUTPUT title="🚀 Automated Bug Fixing and Detection", description="""

Developed by:

Guide: Prof. Alakananda K P

""", theme="soft" ).launch()