minko186 commited on
Commit
42ce03d
1 Parent(s): 4014993

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
 
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
  )