File size: 669 Bytes
63fb23d
d3e257b
63fb23d
d3e257b
22b22ed
d3e257b
63fb23d
d3e257b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()