loubnabnl HF staff commited on
Commit
0d36bc0
1 Parent(s): 61bdb34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
33
  iface = gr.Interface(
34
  fn=code_generation,
35
  inputs=[
36
- gr.Textbox(lines=10, label="Python code"),
37
  gr.inputs.Slider(
38
  minimum=8,
39
  maximum=256,
@@ -56,7 +56,7 @@ iface = gr.Interface(
56
  label="Random seed to use for the generation"
57
  )
58
  ],
59
- outputs=gr.Textbox(label="Predicted explanation", lines=10),
60
  examples=example,
61
  layout="horizontal",
62
  theme="peach",
 
33
  iface = gr.Interface(
34
  fn=code_generation,
35
  inputs=[
36
+ gr.Code(lines=10, label="Python code"),
37
  gr.inputs.Slider(
38
  minimum=8,
39
  maximum=256,
 
56
  label="Random seed to use for the generation"
57
  )
58
  ],
59
+ outputs=gr.Code(label="Predicted explanation", lines=10),
60
  examples=example,
61
  layout="horizontal",
62
  theme="peach",