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