Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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.
|
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",
|