machinelearning147 commited on
Commit
e8b174e
1 Parent(s): 8f90d24
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -17,10 +17,12 @@ def generate_code(input_text):
17
  return output_text
18
 
19
  # Gradio Interface
 
20
  iface = gr.Interface(
21
  fn=generate_code,
22
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter code snippet here..."),
23
- outputs="text"
24
  )
25
 
 
26
  iface.launch()
 
17
  return output_text
18
 
19
  # Gradio Interface
20
+ # Updated Gradio Interface
21
  iface = gr.Interface(
22
  fn=generate_code,
23
+ inputs=gr.Textbox(lines=2, placeholder="Enter code/text snippet here..."),
24
+ outputs=gr.Textbox(label="Generated Code")
25
  )
26
 
27
+ # Launch the interface
28
  iface.launch()