Yingxu He
commited on
Update app.py
Browse files
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="
|
81 |
-
gr.Slider(minimum=1, maximum=2048, value=
|
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.
|
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 |
),
|