loubnabnl HF staff commited on
Commit
fd2774d
·
1 Parent(s): ae37849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
24
  iface = gr.Interface(
25
  fn=code_generation,
26
  inputs=[
27
- gr.Textbox(lines=10, label="Input code"),
28
  gr.inputs.Slider(
29
  minimum=8,
30
  maximum=1000,
@@ -47,7 +47,7 @@ iface = gr.Interface(
47
  label="Random seed to use for the generation"
48
  )
49
  ],
50
- outputs=gr.Textbox(label="Predicted code", lines=10),
51
  examples=example,
52
  layout="horizontal",
53
  theme="peach",
 
24
  iface = gr.Interface(
25
  fn=code_generation,
26
  inputs=[
27
+ gr.Code(lines=10, label="Input code"),
28
  gr.inputs.Slider(
29
  minimum=8,
30
  maximum=1000,
 
47
  label="Random seed to use for the generation"
48
  )
49
  ],
50
+ outputs=gr.Code(label="Predicted code", lines=10),
51
  examples=example,
52
  layout="horizontal",
53
  theme="peach",