loubnabnl HF staff commited on
Commit
e66e7a4
1 Parent(s): 9f1aea1

Update app.py

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