Spaces:
Runtime error
Runtime error
DarwinAnim8or
commited on
Commit
•
dc74f81
1
Parent(s):
af20dc1
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,9 @@ examples = [
|
|
37 |
|
38 |
demo = gr.Interface(
|
39 |
fn=generate,
|
40 |
-
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
41 |
gr.inputs.Slider(1, 200, label='Length', default=100, step=5),
|
42 |
-
gr.inputs.Slider(0.0, 1.0, label='Temperature - control randomness', default=0.8, step=0.1)
|
43 |
-
gen_button = gr.Button("Generate")
|
44 |
outputs=gr.outputs.Textbox(label="Generated Text"),
|
45 |
examples=examples,
|
46 |
title="GPT-Greentext Playground",
|
|
|
37 |
|
38 |
demo = gr.Interface(
|
39 |
fn=generate,
|
40 |
+
inputs=[gr.inputs.Textbox(lines=5, label="Input Text"),
|
41 |
gr.inputs.Slider(1, 200, label='Length', default=100, step=5),
|
42 |
+
gr.inputs.Slider(0.0, 1.0, label='Temperature - control randomness', default=0.8, step=0.1)]
|
|
|
43 |
outputs=gr.outputs.Textbox(label="Generated Text"),
|
44 |
examples=examples,
|
45 |
title="GPT-Greentext Playground",
|