Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def code_generation(gen_prompt, max_tokens, temperature=0.6, seed=42):
|
|
33 |
iface = gr.Interface(
|
34 |
fn=code_generation,
|
35 |
inputs=[
|
36 |
-
gr.
|
37 |
gr.inputs.Slider(
|
38 |
minimum=8,
|
39 |
maximum=256,
|
@@ -56,7 +56,7 @@ iface = gr.Interface(
|
|
56 |
label="Random seed to use for the generation"
|
57 |
)
|
58 |
],
|
59 |
-
outputs=gr.
|
60 |
examples=example,
|
61 |
layout="horizontal",
|
62 |
theme="peach",
|
|
|
33 |
iface = gr.Interface(
|
34 |
fn=code_generation,
|
35 |
inputs=[
|
36 |
+
gr.Code(lines=10, label="Python code"),
|
37 |
gr.inputs.Slider(
|
38 |
minimum=8,
|
39 |
maximum=256,
|
|
|
56 |
label="Random seed to use for the generation"
|
57 |
)
|
58 |
],
|
59 |
+
outputs=gr.Code(label="Predicted explanation", lines=10),
|
60 |
examples=example,
|
61 |
layout="horizontal",
|
62 |
theme="peach",
|