Skip to content

Commit

Permalink
Update Qwen Logo and license for streaming video chat.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinytangent committed Sep 18, 2024
1 parent 90c7ccf commit e03e7c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web_demo_streaming/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,13 @@ def response(self, chatbot_messages, request: gr.Request):

def main():
with gr.Blocks(js=GLOBAL_JS) as demo:
gr.Markdown("""\
<p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 80px"/><p>"""
)
gr.Markdown("""<center><font size=8>Qwen2-VL</center>""")
gr.Markdown("""\
<center><font size=3>This WebUI is based on Qwen2-VL, developed by Alibaba Cloud.</center>""")
gr.Markdown("""<center><font size=3>本WebUI基于Qwen2-VL。</center>""")
with gr.Accordion("Advanced Settings", open=False):
with gr.Accordion("System Prompt", open=False):
textbox_system_prompt = gr.Textbox(
Expand Down Expand Up @@ -615,6 +622,13 @@ def main():
outputs=[],
js="(p1, p2) => (window.startScreenStreaming())"
)
with gr.Row():
gr.Markdown("""\
<font size=2>Note: This demo is governed by the original license of Qwen2-VL. \
We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, \
including hate speech, violence, pornography, deception, etc. \
(注:本演示受Qwen2-VL的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,\
包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)""")
demo.launch(
share=args.share,
inbrowser=args.inbrowser,
Expand Down

0 comments on commit e03e7c1

Please sign in to comment.