Tonic commited on
Commit
6252649
·
1 Parent(s): 32e039b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -27
app.py CHANGED
@@ -183,19 +183,10 @@ def _launch_demo(args, model, tokenizer):
183
  return []
184
 
185
  with gr.Blocks() as demo:
186
- gr.Markdown("""\
187
- <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>""")
188
- gr.Markdown("""<center><font size=8>Qwen-VL-Chat Bot</center>""")
189
  gr.Markdown(
190
- """\
191
- <center><font size=3>This WebUI is based on Qwen-VL-Chat, developed by Alibaba Cloud. \
192
- (本WebUI基于Qwen-VL-Chat打造,实现聊天机器人功能。)</center>""")
193
- gr.Markdown("""\
194
- <center><font size=4>Qwen-VL <a href="https://modelscope.cn/models/qwen/Qwen-VL/summary">🤖 </a>
195
- | <a href="https://huggingface.co/Qwen/Qwen-VL">🤗</a>&nbsp |
196
- Qwen-VL-Chat <a href="https://modelscope.cn/models/qwen/Qwen-VL-Chat/summary">🤖 </a> |
197
- <a href="https://huggingface.co/Qwen/Qwen-VL-Chat">🤗</a>&nbsp |
198
- &nbsp<a href="https://github.com/QwenLM/Qwen-VL">Github</a></center>""")
199
  with gr.Row():
200
  with gr.Column(scale=1):
201
  chatbot = gr.Chatbot(label='Qwen-VL-Chat')
@@ -209,23 +200,13 @@ Qwen-VL-Chat <a href="https://modelscope.cn/models/qwen/Qwen-VL-Chat/summary">
209
  empty_bin = gr.Button("🧹 Clear History")
210
  task_history = gr.State([])
211
 
212
- gr.Markdown("""\
213
- <font size=2>Note: This demo is governed by the original license of Qwen-VL. \
214
- We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, \
215
- including hate speech, violence, pornography, deception, etc. \
216
- (注:本演示受Qwen-VL的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,\
217
  包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)""")
218
 
219
- demo.style(
220
- '''
221
- <style>
222
- .gr-button { margin: 5px; }
223
- .gr-textbox { margin-bottom: 10px; }
224
- .gr-chatbot { height: 500px; }
225
- </style>
226
- '''
227
- )
228
-
229
  demo.queue().launch(
230
  share=args.share,
231
  inbrowser=args.inbrowser,
 
183
  return []
184
 
185
  with gr.Blocks() as demo:
186
+ gr.Markdown("""# Welcome to Tonic's Qwen-VL-Chat Bot""")
 
 
187
  gr.Markdown(
188
+ """ This WebUI is based on Qwen-VL-Chat, developed by Alibaba Cloud.
189
+ (本WebUI基于Qwen-VL-Chat打造,实现聊天机器人功能。)""")
 
 
 
 
 
 
 
190
  with gr.Row():
191
  with gr.Column(scale=1):
192
  chatbot = gr.Chatbot(label='Qwen-VL-Chat')
 
200
  empty_bin = gr.Button("🧹 Clear History")
201
  task_history = gr.State([])
202
 
203
+ gr.Markdown("""
204
+ Note: This demo is governed by the original license of Qwen-VL.
205
+ We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content,
206
+ including hate speech, violence, pornography, deception, etc.
207
+ (注:本演示受Qwen-VL的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,
208
  包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)""")
209
 
 
 
 
 
 
 
 
 
 
 
210
  demo.queue().launch(
211
  share=args.share,
212
  inbrowser=args.inbrowser,