Spaces:
Running
Running
Fix icon
Browse files- components/antd/icon/demos/basic.py +4 -0
- requirements.txt +1 -1
- src/pyproject.toml +1 -1
components/antd/icon/demos/basic.py
CHANGED
@@ -15,5 +15,9 @@ with gr.Blocks() as demo:
|
|
15 |
antd.Icon("SmileTwoTone")
|
16 |
icon = antd.Icon("HeartTwoTone", two_tone_color="#eb2f96")
|
17 |
icon.click(lambda: print("clicked"))
|
|
|
|
|
|
|
|
|
18 |
if __name__ == "__main__":
|
19 |
demo.queue().launch()
|
|
|
15 |
antd.Icon("SmileTwoTone")
|
16 |
icon = antd.Icon("HeartTwoTone", two_tone_color="#eb2f96")
|
17 |
icon.click(lambda: print("clicked"))
|
18 |
+
antd.Divider("Custom Icon")
|
19 |
+
with antd.Icon():
|
20 |
+
with ms.Slot("component"):
|
21 |
+
ms.Text("🔥")
|
22 |
if __name__ == "__main__":
|
23 |
demo.queue().launch()
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
modelscope_studio==1.4.
|
2 |
openai
|
|
|
1 |
+
modelscope_studio==1.4.2
|
2 |
openai
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "modelscope_studio"
|
11 |
-
version = "1.4.
|
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.4.2"
|
12 |
description = "A third-party component library based on Gradio."
|
13 |
readme = "README.md"
|
14 |
license = "Apache-2.0"
|