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