loubnabnl HF staff commited on
Commit
8bcc870
·
1 Parent(s): d21d990

Update app.py

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