Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ with gr.Blocks(
|
|
| 123 |
submit = gr.Button("Submit / 开凹!")
|
| 124 |
stop = gr.Button("Stop / 全局时空断裂")
|
| 125 |
clear = gr.Button("Clear / 打扫群内垃圾")
|
| 126 |
-
with gr.
|
| 127 |
with gr.Column(min_width=80, scale=1):
|
| 128 |
with gr.Tab(label="设置参数"):
|
| 129 |
top_p = gr.Slider(
|
|
@@ -148,10 +148,10 @@ with gr.Blocks(
|
|
| 148 |
value=0.7,
|
| 149 |
step=0.01,
|
| 150 |
interactive=True,
|
| 151 |
-
label="情感温度"
|
| 152 |
)
|
| 153 |
with gr.Column():
|
| 154 |
-
system_prompt = gr.Textbox(label="系统提示词", placeholder="
|
| 155 |
with gr.Row():
|
| 156 |
gr.Markdown(
|
| 157 |
"""警告:该模型可能会生成事实上或道德上不正确的文本。NLPark和安风对此不承担任何责任。"""
|
|
|
|
| 123 |
submit = gr.Button("Submit / 开凹!")
|
| 124 |
stop = gr.Button("Stop / 全局时空断裂")
|
| 125 |
clear = gr.Button("Clear / 打扫群内垃圾")
|
| 126 |
+
with gr.Accordion(label='进阶设置/Advanced options', open=False):
|
| 127 |
with gr.Column(min_width=80, scale=1):
|
| 128 |
with gr.Tab(label="设置参数"):
|
| 129 |
top_p = gr.Slider(
|
|
|
|
| 148 |
value=0.7,
|
| 149 |
step=0.01,
|
| 150 |
interactive=True,
|
| 151 |
+
label="情感温度 / Temperature"
|
| 152 |
)
|
| 153 |
with gr.Column():
|
| 154 |
+
system_prompt = gr.Textbox(label="系统提示词", placeholder="", value=SYSTEM_PROMPT + "content:" , interactive=True)
|
| 155 |
with gr.Row():
|
| 156 |
gr.Markdown(
|
| 157 |
"""警告:该模型可能会生成事实上或道德上不正确的文本。NLPark和安风对此不承担任何责任。"""
|