JustinLin610 commited on
Commit
7a1fac7
1 Parent(s): 6650a22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -74,14 +74,14 @@ with gr.Blocks() as demo:
74
  with gr.Column(scale=3):
75
  system_input = gr.Textbox(value=default_system, lines=1, label='System')
76
  with gr.Column(scale=1):
77
- modify_system = gr.Button("🛠️ 设置system并清除历史对话", scale=2)
78
  system_state = gr.Textbox(value=default_system, visible=False)
79
  chatbot = gr.Chatbot(label='Qwen1.5-32B-Chat')
80
  textbox = gr.Textbox(lines=2, label='Input')
81
 
82
  with gr.Row():
83
- clear_history = gr.Button("🧹 清除历史对话")
84
- sumbit = gr.Button("🚀 发送")
85
 
86
  sumbit.click(model_chat,
87
  inputs=[textbox, chatbot, system_state],
 
74
  with gr.Column(scale=3):
75
  system_input = gr.Textbox(value=default_system, lines=1, label='System')
76
  with gr.Column(scale=1):
77
+ modify_system = gr.Button("🛠️ Set system prompt and clear the history", scale=2)
78
  system_state = gr.Textbox(value=default_system, visible=False)
79
  chatbot = gr.Chatbot(label='Qwen1.5-32B-Chat')
80
  textbox = gr.Textbox(lines=2, label='Input')
81
 
82
  with gr.Row():
83
+ clear_history = gr.Button("🧹 Clear history")
84
+ sumbit = gr.Button("🚀 Send")
85
 
86
  sumbit.click(model_chat,
87
  inputs=[textbox, chatbot, system_state],