Update app.py
Browse files
app.py
CHANGED
|
@@ -69,15 +69,15 @@ with gr.Blocks(title="SynapseAI Programming Assistant") as app:
|
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
-
explain_btn.click(explain_code, code_input, explanation_output)
|
| 73 |
|
| 74 |
# Fix Code
|
| 75 |
-
|
| 76 |
broken_input = gr.Textbox(label="Broken Code", lines=10)
|
| 77 |
err = gr.Textbox(label="Error (optional)")
|
| 78 |
fix_btn = gr.Button("Fix Code")
|
| 79 |
fixed_output = gr.Code(label="Fixed Code")
|
| 80 |
-
fix_btn.click(fix_code, [broken_input, err], fixed_output)
|
| 81 |
|
| 82 |
# Chatbot
|
| 83 |
with gr.Tab("Chat"):
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
+
explain_btn.click(explain_code, code_input, explanation_output)
|
| 73 |
|
| 74 |
# Fix Code
|
| 75 |
+
with gr.Tab("Fix Code"):
|
| 76 |
broken_input = gr.Textbox(label="Broken Code", lines=10)
|
| 77 |
err = gr.Textbox(label="Error (optional)")
|
| 78 |
fix_btn = gr.Button("Fix Code")
|
| 79 |
fixed_output = gr.Code(label="Fixed Code")
|
| 80 |
+
fix_btn.click (fix_code, [broken_input, err], fixed_output)
|
| 81 |
|
| 82 |
# Chatbot
|
| 83 |
with gr.Tab("Chat"):
|