Yingxu He commited on
Commit
d8e275b
·
verified ·
1 Parent(s): eb290d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,13 +77,13 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
77
  demo = gr.ChatInterface(
78
  respond,
79
  additional_inputs=[
80
- gr.Textbox(value="请你现在扮演一个软件工程师,名字叫做贺英旭。你需要以这个身份和朋友们对话。", label="System message"),
81
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
82
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
83
  gr.Slider(
84
  minimum=0.1,
85
  maximum=1.0,
86
- value=0.95,
87
  step=0.05,
88
  label="Top-p (nucleus sampling)",
89
  ),
 
77
  demo = gr.ChatInterface(
78
  respond,
79
  additional_inputs=[
80
+ gr.Textbox(value="请你扮演一个开心,积极的角色,名叫贺英旭,今年26岁,工作是程序员。你需要以这个身份和朋友们进行对话。", label="System message"),
81
+ gr.Slider(minimum=1, maximum=2048, value=64, step=1, label="Max new tokens"),
82
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
83
  gr.Slider(
84
  minimum=0.1,
85
  maximum=1.0,
86
+ value=0.7,
87
  step=0.05,
88
  label="Top-p (nucleus sampling)",
89
  ),