modelscope-studio 0.1.2__tar.gz → 0.1.4__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 (37) hide show
  1. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/PKG-INFO +3 -3
  2. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/README.md +2 -2
  3. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/__init__.py +2 -2
  4. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/__init__.pyi +2 -2
  5. modelscope_studio-0.1.4/backend/modelscope_studio/components/Chatbot/templates/component/index-9933f53a.js +44002 -0
  6. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +20064 -19645
  7. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +1 -1
  8. modelscope_studio-0.1.4/backend/modelscope_studio/components/Markdown/templates/component/index-9933f53a.js +44002 -0
  9. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/templates/component/index.js +19357 -18948
  10. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/templates/component/style.css +1 -1
  11. modelscope_studio-0.1.4/backend/modelscope_studio/components/Markdown/templates/example/index-9933f53a.js +44002 -0
  12. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/templates/example/index.js +19127 -18718
  13. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/templates/example/style.css +1 -1
  14. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +2692 -2459
  15. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/pyproject.toml +1 -1
  16. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/.gitignore +0 -0
  17. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/LICENSE +0 -0
  18. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/__init__.py +0 -0
  19. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
  20. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/templates/example/index.js +0 -0
  21. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Chatbot/templates/example/style.css +0 -0
  22. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Flow/__init__.pyi +0 -0
  23. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
  24. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/Markdown/__init__.pyi +0 -0
  25. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/__init__.py +0 -0
  26. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +0 -0
  27. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/component/__vite-browser-external-2447137e.js +0 -0
  28. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
  29. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/component/wrapper-6f348d45-19fa94bf.js +0 -0
  30. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
  31. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
  32. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/WaterfallGallery/__init__.py +0 -0
  33. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +0 -0
  34. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +0 -0
  35. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +0 -0
  36. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/backend/modelscope_studio/utils/__init__.py +0 -0
  37. {modelscope_studio-0.1.2 → modelscope_studio-0.1.4}/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.1.2
3
+ Version: 0.1.4
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
@@ -25,7 +25,7 @@ Requires-Dist: build; extra == 'dev'
25
25
  Requires-Dist: twine; extra == 'dev'
26
26
  Description-Content-Type: text/markdown
27
27
 
28
- <h1>Modelscope Studio</h1>
28
+ <h1>ModelScope Studio</h1>
29
29
 
30
30
  <p align="center">
31
31
  <img src="https://modelscope.oss-cn-beijing.aliyuncs.com/modelscope.gif" height="60" style="vertical-align: middle;"/>
@@ -36,7 +36,7 @@ Description-Content-Type: text/markdown
36
36
  <p>
37
37
 
38
38
  <p align="center">
39
- <a href="https://github.com/modelscope/modelscope-studio">GitHub</a> | 🤖 <a href="https://modelscope.cn/studios/modelscope/modelscope-studio/summary">Modelscope Studio</a> | 🤗 <a href="https://huggingface.co/spaces/modelscope/modelscope-studio">Hugging Face Space</a>
39
+ <a href="https://github.com/modelscope/modelscope-studio">GitHub</a> | 🤖 <a href="https://modelscope.cn/studios/modelscope/modelscope-studio/summary">ModelScope Studio</a> | 🤗 <a href="https://huggingface.co/spaces/modelscope/modelscope-studio">Hugging Face Space</a>
40
40
  <br>
41
41
  <a href="README-zh_CN.md">中文</a>&nbsp | &nbspEnglish&nbsp | &nbsp<a href="README-ja_JP.md">日本語</a>
42
42
  </p>
@@ -1,4 +1,4 @@
1
- <h1>Modelscope Studio</h1>
1
+ <h1>ModelScope Studio</h1>
2
2
 
3
3
  <p align="center">
4
4
  <img src="https://modelscope.oss-cn-beijing.aliyuncs.com/modelscope.gif" height="60" style="vertical-align: middle;"/>
@@ -9,7 +9,7 @@
9
9
  <p>
10
10
 
11
11
  <p align="center">
12
- <a href="https://github.com/modelscope/modelscope-studio">GitHub</a> | 🤖 <a href="https://modelscope.cn/studios/modelscope/modelscope-studio/summary">Modelscope Studio</a> | 🤗 <a href="https://huggingface.co/spaces/modelscope/modelscope-studio">Hugging Face Space</a>
12
+ <a href="https://github.com/modelscope/modelscope-studio">GitHub</a> | 🤖 <a href="https://modelscope.cn/studios/modelscope/modelscope-studio/summary">ModelScope Studio</a> | 🤗 <a href="https://huggingface.co/spaces/modelscope/modelscope-studio">Hugging Face Space</a>
13
13
  <br>
14
14
  <a href="README-zh_CN.md">中文</a>&nbsp | &nbspEnglish&nbsp | &nbsp<a href="README-ja_JP.md">日本語</a>
15
15
  </p>
@@ -93,7 +93,7 @@ class ModelScopeChatbot(Component):
93
93
  str | Path | None | dict | list | tuple]
94
94
  | None = None,
95
95
  avatar_image_align: Literal['top', 'middle', 'bottom'] = 'bottom',
96
- avatar_image_width: int = 45,
96
+ avatar_image_width: Union[int, Literal['auto']] = 45,
97
97
  sanitize_html: bool = True,
98
98
  render_markdown: bool = True,
99
99
  bubble_full_width: bool = True,
@@ -131,7 +131,7 @@ class ModelScopeChatbot(Component):
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.
134
- avatar_image_width: Width of the avatar image in pixels.
134
+ avatar_image_width: Width of the avatar image in pixels, pass in `auto` to automatically stretch in each message.
135
135
  avatar_image_align: Aligns the avatar images to the top, middle, or bottom of the message.
136
136
  render_markdown: If False, will disable Markdown rendering for chatbot messages.
137
137
  bubble_full_width: If False, the chat bubble will fit to the content of the message. If True (default), the chat bubble will be the full width of the component.
@@ -79,7 +79,7 @@ class ModelScopeChatbot(Component):
79
79
  str | Path | None | dict | list | tuple]
80
80
  | None = None,
81
81
  avatar_image_align: Literal['top', 'middle', 'bottom'] = 'bottom',
82
- avatar_image_width: int = 45,
82
+ avatar_image_width: Union[int, Literal['auto']] = 45,
83
83
  sanitize_html: bool = True,
84
84
  render_markdown: bool = True,
85
85
  bubble_full_width: bool = True,
@@ -117,7 +117,7 @@ class ModelScopeChatbot(Component):
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.
120
- avatar_image_width: Width of the avatar image in pixels.
120
+ avatar_image_width: Width of the avatar image in pixels, pass in `auto` to automatically stretch in each message.
121
121
  avatar_image_align: Aligns the avatar images to the top, middle, or bottom of the message.
122
122
  render_markdown: If False, will disable Markdown rendering for chatbot messages.
123
123
  bubble_full_width: If False, the chat bubble will fit to the content of the message. If True (default), the chat bubble will be the full width of the component.