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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -109,9 +109,15 @@ with gr.Blocks(
109
  本节目由上海师范大学附属外国语中学 NLPark 赞助播出""")
110
 
111
  with gr.Row():
112
- with gr.Column(scale=1):
113
  chatbot = gr.Chatbot(label="兮辞如是说").style(height=400)
114
- system_prompt = gr.Textbox(label="系统提示词", placeholder="", value=SYSTEM_PROMPT, interactive=False, lines=5)
 
 
 
 
 
 
115
  with gr.Column(min_width=80, scale=1):
116
  with gr.Tab(label="设置参数"):
117
  top_p = gr.Slider(
@@ -139,12 +145,6 @@ with gr.Blocks(
139
  label="情感温度"
140
  )
141
  with gr.Row():
142
- with gr.Column():
143
- msg = gr.Textbox(
144
- label="来问问兮辞吧……",
145
- placeholder="兮辞折寿中……",
146
- show_label=False,
147
- ).style(container=False)
148
  with gr.Column():
149
  with gr.Row():
150
  submit = gr.Button("Submit / 开凹!")
 
109
  本节目由上海师范大学附属外国语中学 NLPark 赞助播出""")
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(
 
145
  label="情感温度"
146
  )
147
  with gr.Row():
 
 
 
 
 
 
148
  with gr.Column():
149
  with gr.Row():
150
  submit = gr.Button("Submit / 开凹!")