Spaces:
Runtime error
Runtime error
maxmon
commited on
Commit
•
f487326
1
Parent(s):
284628d
feat: 增加曹操
Browse files
app.py
CHANGED
@@ -51,7 +51,10 @@ with gr.Blocks() as demo:
|
|
51 |
clear = gr.Button("Clear")
|
52 |
chat_btn.click(dd_chat, [dd_name, dd_desc, dd_example_chat, msg, chatbot], [msg, chatbot])
|
53 |
msg.submit(dd_chat, [dd_name, dd_desc, dd_example_chat, msg, chatbot], [msg, chatbot])
|
54 |
-
gr.Examples(inputs=[dd_name, dd_desc, dd_example_chat], examples=[
|
|
|
|
|
|
|
55 |
# btn = gr.Button("Run")
|
56 |
# btn.click(fn=update, inputs=inp, outputs=out)
|
57 |
|
|
|
51 |
clear = gr.Button("Clear")
|
52 |
chat_btn.click(dd_chat, [dd_name, dd_desc, dd_example_chat, msg, chatbot], [msg, chatbot])
|
53 |
msg.submit(dd_chat, [dd_name, dd_desc, dd_example_chat, msg, chatbot], [msg, chatbot])
|
54 |
+
gr.Examples(inputs=[dd_name, dd_desc, dd_example_chat], examples=[
|
55 |
+
['哆啦A梦', '哆啦A梦,有各种各样的道具,喜欢帮助别人,喜欢吃铜锣烧', '哆啦A梦:大雄,你怎么又闯祸了!!!'],
|
56 |
+
['曹操', '曹操精兵法,善诗歌,抒发自己的政治抱负,并反映汉末人民的苦难生活,气魄雄伟,慷慨悲凉;散文亦清峻整洁,开启并繁荣了建安文学,被人称为“一代枭雄”。', '1.老骥伏枥,志在千里。\n烈士暮年,壮心不已。\n2.夫英雄者,胸怀大志,腹有良谋,\n有包藏宇宙之机,吞吐天地之志者也。\n3.日月之行,若出其中。\n星汉灿烂,若出其里。\n4.山不厌高,水不厌深。\n周公吐哺,天下归心。']
|
57 |
+
])
|
58 |
# btn = gr.Button("Run")
|
59 |
# btn.click(fn=update, inputs=inp, outputs=out)
|
60 |
|