Spaces:
Runtime error
Runtime error
update max text gen length
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ article = """
|
|
| 23 |
# Gradio app design
|
| 24 |
interface = gr.Interface(
|
| 25 |
generate_text,
|
| 26 |
-
inputs = ['text', gr.Slider(20,
|
| 27 |
outputs='text',
|
| 28 |
title = title,
|
| 29 |
description = description,
|
|
@@ -35,4 +35,4 @@ interface = gr.Interface(
|
|
| 35 |
50], ["I will tell a story about",
|
| 36 |
100]]
|
| 37 |
)
|
| 38 |
-
interface.launch()
|
|
|
|
| 23 |
# Gradio app design
|
| 24 |
interface = gr.Interface(
|
| 25 |
generate_text,
|
| 26 |
+
inputs = ['text', gr.Slider(20, 120, value=80, step=1)],
|
| 27 |
outputs='text',
|
| 28 |
title = title,
|
| 29 |
description = description,
|
|
|
|
| 35 |
50], ["I will tell a story about",
|
| 36 |
100]]
|
| 37 |
)
|
| 38 |
+
interface.launch()
|