Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,9 @@ def respond(message, tone="natural", max_length=512):
|
|
35 |
demo = gr.ChatInterface(
|
36 |
respond,
|
37 |
additional_inputs=[
|
38 |
-
gr.
|
|
|
|
|
39 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
40 |
],
|
41 |
)
|
|
|
35 |
demo = gr.ChatInterface(
|
36 |
respond,
|
37 |
additional_inputs=[
|
38 |
+
gr.Dropdown(
|
39 |
+
["natural", "fluency", "formal", "academic", "simple"], label="Tone", value="natural"
|
40 |
+
),
|
41 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
42 |
],
|
43 |
)
|