Cran-May commited on
Commit
d64cbaa
1 Parent(s): d2abf56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -110,14 +110,16 @@ with gr.Blocks(
110
 
111
  with gr.Row():
112
  with gr.Column(scale=5):
113
- chatbot = gr.Chatbot(label="兮辞如是说").style(height=400)
114
- system_prompt = gr.Textbox(label="系统提示词", placeholder="", value=SYSTEM_PROMPT, interactive=False)
115
- with gr.Column():
116
  msg = gr.Textbox(
117
  label="来问问兮辞吧……",
118
  placeholder="兮辞折寿中……",
119
  show_label=False,
120
  ).style(container=False)
 
 
 
 
121
  with gr.Column(min_width=80, scale=1):
122
  with gr.Tab(label="设置参数"):
123
  top_p = gr.Slider(
@@ -144,12 +146,8 @@ with gr.Blocks(
144
  interactive=True,
145
  label="情感温度"
146
  )
147
- with gr.Row():
148
  with gr.Column():
149
- with gr.Row():
150
- submit = gr.Button("Submit / 开凹!")
151
- stop = gr.Button("Stop / 全局时空断裂")
152
- clear = gr.Button("Clear / 打扫群内垃圾")
153
  with gr.Row():
154
  gr.Markdown(
155
  """警告:该模型可能会生成事实上或道德上不正确的文本。NLPark和兮辞对此不承担任何责任。"""
 
110
 
111
  with gr.Row():
112
  with gr.Column(scale=5):
113
+ chatbot = gr.Chatbot(label="兮辞如是说").style(height=400) with gr.Column():
 
 
114
  msg = gr.Textbox(
115
  label="来问问兮辞吧……",
116
  placeholder="兮辞折寿中……",
117
  show_label=False,
118
  ).style(container=False)
119
+ with gr.Column():
120
+ submit = gr.Button("Submit / 开凹!")
121
+ stop = gr.Button("Stop / 全局时空断裂")
122
+ clear = gr.Button("Clear / 打扫群内垃圾")
123
  with gr.Column(min_width=80, scale=1):
124
  with gr.Tab(label="设置参数"):
125
  top_p = gr.Slider(
 
146
  interactive=True,
147
  label="情感温度"
148
  )
 
149
  with gr.Column():
150
+ system_prompt = gr.Textbox(label="系统提示词", placeholder="", value=SYSTEM_PROMPT, interactive=False)
 
 
 
151
  with gr.Row():
152
  gr.Markdown(
153
  """警告:该模型可能会生成事实上或道德上不正确的文本。NLPark和兮辞对此不承担任何责任。"""