Spaces:
Sleeping
Sleeping
Commit
·
d90fb90
1
Parent(s):
5e5cdcb
test deepseek
Browse files
app.py
CHANGED
@@ -29,13 +29,13 @@ with gr.Blocks() as demo: # Bắt đầu Blocks
|
|
29 |
# Thành phần hiển thị lịch sử chat
|
30 |
chatbot = gr.Chatbot(type="messages") # hỗ trợ subset Markdown:contentReference[oaicite:3]{index=3}
|
31 |
|
32 |
-
#
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
|
40 |
# Các input controls
|
41 |
with gr.Row():
|
|
|
29 |
# Thành phần hiển thị lịch sử chat
|
30 |
chatbot = gr.Chatbot(type="messages") # hỗ trợ subset Markdown:contentReference[oaicite:3]{index=3}
|
31 |
|
32 |
+
# Thành phần Markdown để render kết quả đã format (Markdown + LaTeX)
|
33 |
+
markdown_out = gr.Markdown(
|
34 |
+
latex_delimiters=[
|
35 |
+
{"left": "$$", "right": "$$", "display": True},
|
36 |
+
{"left": "$", "right": "$", "display": False},
|
37 |
+
]
|
38 |
+
) # cho phép render LaTeX:contentReference[oaicite:4]{index=4}
|
39 |
|
40 |
# Các input controls
|
41 |
with gr.Row():
|