Spaces:
Runtime error
Runtime error
Not-Grim-Refer
commited on
Commit
•
767bc69
1
Parent(s):
a0d9618
Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,14 @@ iface = gr.Interface(
|
|
32 |
fn=code_generation,
|
33 |
inputs=[
|
34 |
gr.inputs.Code(language="python", label="Python code snippet", lines=10),
|
35 |
-
gr.inputs.Slider(minimum=8, maximum=256, step=1, default=
|
36 |
-
gr.inputs.Slider(minimum=0, maximum=2.5, step=0.1, default=0.
|
37 |
gr.inputs.Slider(minimum=0, maximum=1000, step=1, default=42, label="Random seed")
|
38 |
],
|
39 |
outputs=gr.outputs.Code(language="text", label="Generated explanation", lines=10),
|
40 |
examples=EXAMPLES,
|
41 |
layout="horizontal",
|
42 |
-
theme="
|
43 |
description=description,
|
44 |
title=title
|
45 |
)
|
|
|
32 |
fn=code_generation,
|
33 |
inputs=[
|
34 |
gr.inputs.Code(language="python", label="Python code snippet", lines=10),
|
35 |
+
gr.inputs.Slider(minimum=8, maximum=256, step=1, default=256, label="Number of tokens to generate"),
|
36 |
+
gr.inputs.Slider(minimum=0, maximum=2.5, step=0.1, default=0.1, label="Temperature"),
|
37 |
gr.inputs.Slider(minimum=0, maximum=1000, step=1, default=42, label="Random seed")
|
38 |
],
|
39 |
outputs=gr.outputs.Code(language="text", label="Generated explanation", lines=10),
|
40 |
examples=EXAMPLES,
|
41 |
layout="horizontal",
|
42 |
+
theme="monochrome",
|
43 |
description=description,
|
44 |
title=title
|
45 |
)
|