Spaces:
Running
Running
JustinLin610
commited on
Commit
•
513d654
1
Parent(s):
ab2b69f
Update app.py
Browse files
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
|
73 |
-
gr.Markdown("""<center><font size=4
|
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("🛠️
|
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],
|