modelscope-studio 0.0.8__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.
Files changed (33) hide show
  1. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/.gitignore +1 -0
  2. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/PKG-INFO +2 -2
  3. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/README.md +1 -1
  4. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/__init__.py +3 -1
  5. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/__init__.py +1 -1
  6. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/__init__.pyi +1 -1
  7. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +3036 -3033
  8. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +1 -1
  9. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/component/index.js +2 -2
  10. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/component/style.css +1 -1
  11. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/example/index.js +2 -2
  12. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/templates/example/style.css +1 -1
  13. modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/__init__.py +265 -0
  14. modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +477 -0
  15. modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +8487 -0
  16. modelscope_studio-0.1.0/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +1 -0
  17. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/pyproject.toml +6 -1
  18. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/LICENSE +0 -0
  19. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
  20. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/example/index.js +0 -0
  21. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Chatbot/templates/example/style.css +0 -0
  22. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
  23. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/Markdown/__init__.pyi +0 -0
  24. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/__init__.py +0 -0
  25. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +0 -0
  26. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/__vite-browser-external-2447137e.js +0 -0
  27. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +0 -0
  28. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
  29. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/component/wrapper-6f348d45-f837cf34.js +0 -0
  30. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
  31. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
  32. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/utils/__init__.py +0 -0
  33. {modelscope_studio-0.0.8 → modelscope_studio-0.1.0}/backend/modelscope_studio/utils/process_links.py +0 -0
@@ -48,6 +48,7 @@ typings/
48
48
 
49
49
  # Output of 'npm pack'
50
50
  *.tgz
51
+ *.whl
51
52
 
52
53
  # xconsole
53
54
  src/.xconsole
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modelscope_studio
3
- Version: 0.0.8
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
- - ImageGallery (WIP): gradio Gallery extension component, supports waterfall-style image display.
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
- - ImageGallery (WIP): gradio Gallery extension component, supports waterfall-style image display.
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']
@@ -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 to Hugging Face Spaces Discussions. If False, icon does not appear. If set to None (default behavior), then the icon appears if this Gradio app is launched on Spaces, but not otherwise.
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 to Hugging Face Spaces Discussions. If False, icon does not appear. If set to None (default behavior), then the icon appears if this Gradio app is launched on Spaces, but not otherwise.
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.