Dmang69 commited on
Commit
c09c072
·
verified ·
1 Parent(s): c3208d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- 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"):
 
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"):