hiyouga commited on
Commit
ed2abfb
·
verified ·
1 Parent(s): 2b98c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -86,6 +86,7 @@ with gr.Blocks(css=CSS) as demo:
86
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
87
  gr.ChatInterface(
88
  fn=stream_chat,
 
89
  fill_height=True,
90
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
91
  additional_inputs=[
@@ -118,7 +119,7 @@ with gr.Blocks(css=CSS) as demo:
118
  "You are a helpful assistant.",
119
  ],
120
  ["我的笔记本找不到了。", "扮演诸葛亮和我对话。"],
121
- ["我想要一个新的密码。", "现在你是西游记里的孙悟空。" + TOOL_EXAMPLE],
122
  ],
123
  cache_examples=False,
124
  )
 
86
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
87
  gr.ChatInterface(
88
  fn=stream_chat,
89
+ chatbot=gr.Chatbot(height=450),
90
  fill_height=True,
91
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
92
  additional_inputs=[
 
119
  "You are a helpful assistant.",
120
  ],
121
  ["我的笔记本找不到了。", "扮演诸葛亮和我对话。"],
122
+ ["我想要一个新的密码,长度为8位,包含特殊符号。", TOOL_EXAMPLE],
123
  ],
124
  cache_examples=False,
125
  )