bug-fixer / app_ui.py
venky2k1
Initial commit for deployment
d3e257b
raw
history blame contribute delete
669 Bytes
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="""
<h3 style='color: orange;'>Developed by:</h3>
<ul>
<li><strong>Akanksha K P</strong></li>
<li><strong>Divyashree</strong></li>
</ul>
<h4 style='color: cyan;'>Guide: Prof. Alakananda K P</h4>
""",
theme="soft"
).launch()