modelscope-studio 0.0.7__tar.gz → 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/.gitignore +1 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/PKG-INFO +2 -2
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/README.md +1 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/__init__.py +3 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/__init__.py +2 -2
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/__init__.pyi +1 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +3036 -3033
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +1 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/component/index.js +2 -2
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/component/style.css +1 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/example/index.js +2 -2
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/example/style.css +1 -1
- modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/__init__.py +265 -0
- modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +477 -0
- modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +8487 -0
- modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +1 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/pyproject.toml +3 -1
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/LICENSE +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/example/index.js +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/example/style.css +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/__init__.pyi +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/__init__.py +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/__vite-browser-external-2447137e.js +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/wrapper-6f348d45-f837cf34.js +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/utils/__init__.py +0 -0
- {modelscope_studio-0.0.7 → modelscope_studio-0.1.0}/backend/modelscope_studio/utils/process_links.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: modelscope_studio
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios.
|
|
5
5
|
Author-email: YOUR NAME <YOUREMAIL@domain.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -90,7 +90,7 @@ The currently supported components include:
|
|
|
90
90
|
- Chatbot: gradio Chatbot extension component, supports multi-modal content output, multi-bot scenarios, and custom rendering components and event interactions within the conversation content.
|
|
91
91
|
- MultimodalInput: A multi-modal input box, supporting functions such as file upload, recording, and photography.
|
|
92
92
|
- Markdown: gradio Markdown extension component, supports the output of multi-modal content (audio, video, voice, files, text).
|
|
93
|
-
-
|
|
93
|
+
- WaterfallGallery: gradio Gallery extension component, supports waterfall-style image display.
|
|
94
94
|
- More components...
|
|
95
95
|
|
|
96
96
|
For detailed usage, see [Documentation and Examples](https://modelscope.cn/studios/modelscope/modelscope-studio/summary)
|
|
@@ -63,7 +63,7 @@ The currently supported components include:
|
|
|
63
63
|
- Chatbot: gradio Chatbot extension component, supports multi-modal content output, multi-bot scenarios, and custom rendering components and event interactions within the conversation content.
|
|
64
64
|
- MultimodalInput: A multi-modal input box, supporting functions such as file upload, recording, and photography.
|
|
65
65
|
- Markdown: gradio Markdown extension component, supports the output of multi-modal content (audio, video, voice, files, text).
|
|
66
|
-
-
|
|
66
|
+
- WaterfallGallery: gradio Gallery extension component, supports waterfall-style image display.
|
|
67
67
|
- More components...
|
|
68
68
|
|
|
69
69
|
For detailed usage, see [Documentation and Examples](https://modelscope.cn/studios/modelscope/modelscope-studio/summary)
|
|
@@ -2,5 +2,7 @@ from .components.Chatbot import ModelScopeChatbot as Chatbot
|
|
|
2
2
|
from .components.Markdown import ModelScopeMarkdown as Markdown
|
|
3
3
|
from .components.MultimodalInput import \
|
|
4
4
|
ModelScopeMultimodalInput as MultimodalInput
|
|
5
|
+
from .components.WaterfallGallery import \
|
|
6
|
+
ModelScopeWaterfallGallery as WaterfallGallery
|
|
5
7
|
|
|
6
|
-
__all__ = ['Chatbot', 'Markdown', 'MultimodalInput']
|
|
8
|
+
__all__ = ['Chatbot', 'Markdown', 'MultimodalInput', 'WaterfallGallery']
|
|
@@ -27,7 +27,7 @@ class MultimodalMessage(GradioModel):
|
|
|
27
27
|
# elem id of message container
|
|
28
28
|
elem_id: Optional[str] = None
|
|
29
29
|
# elem classes of message container
|
|
30
|
-
elem_classes: Optional[list[str]
|
|
30
|
+
elem_classes: Optional[Union[list[str], str]] = None
|
|
31
31
|
name: Optional[str] = None
|
|
32
32
|
text: Optional[str] = None
|
|
33
33
|
flushing: Optional[bool] = None
|
|
@@ -127,7 +127,7 @@ class ModelScopeChatbot(Component):
|
|
|
127
127
|
enable_latex: If True, will enable LaTeX rendering.
|
|
128
128
|
latex_single_dollar_delimiter: If True, will enable single dollar delimiter for LaTeX rendering.
|
|
129
129
|
rtl: If True, sets the direction of the rendered text to right-to-left. Default is False, which renders text left-to-right.
|
|
130
|
-
show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs
|
|
130
|
+
show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs. If False, icon does not appear.
|
|
131
131
|
show_copy_button: If True, will show a copy button for each chatbot message.
|
|
132
132
|
avatar_images: Tuple of two avatar image paths or URLs or dict ("avatar" and "name") or list (each item receives the previous parameters) for user(s) and bot(s) (in that order). Pass None for either the user or bot image to skip. Must be within the working directory of the Gradio app or an external URL and use `gr.update` to update.
|
|
133
133
|
sanitize_html: If False, will disable HTML sanitization for chatbot messages. This is not recommended, as it can lead to security vulnerabilities.
|
|
@@ -113,7 +113,7 @@ class ModelScopeChatbot(Component):
|
|
|
113
113
|
enable_latex: If True, will enable LaTeX rendering.
|
|
114
114
|
latex_single_dollar_delimiter: If True, will enable single dollar delimiter for LaTeX rendering.
|
|
115
115
|
rtl: If True, sets the direction of the rendered text to right-to-left. Default is False, which renders text left-to-right.
|
|
116
|
-
show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs
|
|
116
|
+
show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs. If False, icon does not appear.
|
|
117
117
|
show_copy_button: If True, will show a copy button for each chatbot message.
|
|
118
118
|
avatar_images: Tuple of two avatar image paths or URLs or dict ("avatar" and "name") or list (each item receives the previous parameters) for user(s) and bot(s) (in that order). Pass None for either the user or bot image to skip. Must be within the working directory of the Gradio app or an external URL and use `gr.update` to update.
|
|
119
119
|
sanitize_html: If False, will disable HTML sanitization for chatbot messages. This is not recommended, as it can lead to security vulnerabilities.
|