JustinLin610 commited on
Commit
513d654
1 Parent(s): ab2b69f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -69,21 +69,21 @@ def model_chat(query: Optional[str], history: Optional[History], system: str
69
 
70
  with gr.Blocks() as demo:
71
  gr.Markdown("""<p align="center"><img src="https://modelscope.cn/api/v1/models/qwen/Qwen-VL-Chat/repo?Revision=master&FilePath=assets/logo.jpg&View=true" style="height: 80px"/><p>""")
72
- gr.Markdown("""<center><font size=8>Qwen-72B-Chat Bot👾</center>""")
73
- gr.Markdown("""<center><font size=4>通义千问-72B(Qwen-72B 是阿里云研发的通义千问大模型系列的720亿参数规模的模型。</center>""")
74
 
75
  with gr.Row():
76
  with gr.Column(scale=3):
77
  system_input = gr.Textbox(value=default_system, lines=1, label='System')
78
  with gr.Column(scale=1):
79
- modify_system = gr.Button("🛠️ 设置system并清除历史对话", scale=2)
80
  system_state = gr.Textbox(value=default_system, visible=False)
81
  chatbot = gr.Chatbot(label='Qwen-72B-Chat')
82
  textbox = gr.Textbox(lines=2, label='Input')
83
 
84
  with gr.Row():
85
- clear_history = gr.Button("🧹 清除历史对话")
86
- sumbit = gr.Button("🚀 发送")
87
 
88
  sumbit.click(model_chat,
89
  inputs=[textbox, chatbot, system_state],
 
69
 
70
  with gr.Blocks() as demo:
71
  gr.Markdown("""<p align="center"><img src="https://modelscope.cn/api/v1/models/qwen/Qwen-VL-Chat/repo?Revision=master&FilePath=assets/logo.jpg&View=true" style="height: 80px"/><p>""")
72
+ gr.Markdown("""<center><font size=8>Qwen-72B-Chat</center>""")
73
+ gr.Markdown("""<center><font size=4>Qwen-72B-Chat is the 72-billion parameter chat model of the Qwen series.</center>""")
74
 
75
  with gr.Row():
76
  with gr.Column(scale=3):
77
  system_input = gr.Textbox(value=default_system, lines=1, label='System')
78
  with gr.Column(scale=1):
79
+ modify_system = gr.Button("🛠️ Set system prompt and clear history.", scale=2)
80
  system_state = gr.Textbox(value=default_system, visible=False)
81
  chatbot = gr.Chatbot(label='Qwen-72B-Chat')
82
  textbox = gr.Textbox(lines=2, label='Input')
83
 
84
  with gr.Row():
85
+ clear_history = gr.Button("🧹 Clear history")
86
+ sumbit = gr.Button("🚀 Send")
87
 
88
  sumbit.click(model_chat,
89
  inputs=[textbox, chatbot, system_state],