Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,10 +76,19 @@ example_prompts = [
|
|
76 |
["写一篇关于青春的五言绝句"],
|
77 |
["一枚反面朝上的硬币,被翻转了15下后,它的上面是正面,这个说法正确吗?"]
|
78 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
demo = gr.ChatInterface(respond,
|
81 |
title="Hunyuan-Large",
|
82 |
-
examples=example_prompts
|
|
|
83 |
)
|
84 |
|
85 |
if __name__ == "__main__":
|
|
|
76 |
["写一篇关于青春的五言绝句"],
|
77 |
["一枚反面朝上的硬币,被翻转了15下后,它的上面是正面,这个说法正确吗?"]
|
78 |
]
|
79 |
+
latex_delimiters = [
|
80 |
+
{"left": "$$", "right": "$$", "display": True},
|
81 |
+
{"left": "\\[", "right": "\\]", "display": True},{"left": "$", "right": "$", "display": False},
|
82 |
+
{"left": "\\(", "right": "\\)", "display": False}
|
83 |
+
]
|
84 |
+
|
85 |
+
|
86 |
+
chatbot = gr.Chatbot(latex_delimiters=latex_delimiters, scale=9)
|
87 |
|
88 |
demo = gr.ChatInterface(respond,
|
89 |
title="Hunyuan-Large",
|
90 |
+
examples=example_prompts,
|
91 |
+
chatbot=chatbot
|
92 |
)
|
93 |
|
94 |
if __name__ == "__main__":
|