Spaces:
Runtime error
Runtime error
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() | |