Spaces:
Running
Running
feat: update
Browse files- components/antdx/bubble/demos/chatbot.py +17 -1
- requirements.txt +1 -1
- src/pyproject.toml +1 -1
components/antdx/bubble/demos/chatbot.py
CHANGED
@@ -90,8 +90,24 @@ with gr.Blocks() as demo:
|
|
90 |
# render footer
|
91 |
with ms.Slot("footer",
|
92 |
params_mapping="""(item) => {
|
93 |
-
return { refresh: { key: item.key }, like: { key: item.key, color: item.meta?.action === "like" ? 'primary' : 'default' }, dislike: { key: item.key, color: item.meta?.action === "dislike" ? 'primary' : 'default' } }
|
94 |
}"""):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
with antd.Button(
|
96 |
value=None,
|
97 |
size="small",
|
|
|
90 |
# render footer
|
91 |
with ms.Slot("footer",
|
92 |
params_mapping="""(item) => {
|
93 |
+
return { copy: { copyable: { text: item.content, tooltips: false } } ,refresh: { key: item.key }, like: { key: item.key, color: item.meta?.action === "like" ? 'primary' : 'default' }, dislike: { key: item.key, color: item.meta?.action === "dislike" ? 'primary' : 'default' } }
|
94 |
}"""):
|
95 |
+
with antd.Typography.Text(
|
96 |
+
copyable=dict(tooltips=False),
|
97 |
+
as_item="copy"):
|
98 |
+
with ms.Slot("copyable.icon"):
|
99 |
+
with antd.Button(value=None,
|
100 |
+
size="small",
|
101 |
+
color="default",
|
102 |
+
variant="text"):
|
103 |
+
with ms.Slot("icon"):
|
104 |
+
antd.Icon("CopyOutlined")
|
105 |
+
with antd.Button(value=None,
|
106 |
+
size="small",
|
107 |
+
color="default",
|
108 |
+
variant="text"):
|
109 |
+
with ms.Slot("icon"):
|
110 |
+
antd.Icon("CheckOutlined")
|
111 |
with antd.Button(
|
112 |
value=None,
|
113 |
size="small",
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
modelscope_studio==1.1.
|
2 |
openai
|
|
|
1 |
+
modelscope_studio==1.1.5
|
2 |
openai
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "modelscope_studio"
|
11 |
-
version = "1.1.
|
12 |
description = "A third-party component library based on Gradio."
|
13 |
readme = "README.md"
|
14 |
license = "Apache-2.0"
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "modelscope_studio"
|
11 |
+
version = "1.1.5"
|
12 |
description = "A third-party component library based on Gradio."
|
13 |
readme = "README.md"
|
14 |
license = "Apache-2.0"
|