modelscope-studio 0.1.0__tar.gz → 0.1.2__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 (34) hide show
  1. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/PKG-INFO +1 -1
  2. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/__init__.py +3 -0
  3. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/__init__.pyi +3 -0
  4. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +3 -3
  5. {modelscope_studio-0.1.0/backend/modelscope_studio/components/Markdown → modelscope_studio-0.1.2/backend/modelscope_studio/components/Chatbot}/templates/component/style.css +1 -1
  6. modelscope_studio-0.1.2/backend/modelscope_studio/components/Flow/__init__.pyi +110 -0
  7. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Markdown/templates/component/index.js +422 -422
  8. {modelscope_studio-0.1.0/backend/modelscope_studio/components/Chatbot → modelscope_studio-0.1.2/backend/modelscope_studio/components/Markdown}/templates/component/style.css +1 -1
  9. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Markdown/templates/example/index.js +2 -2
  10. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Markdown/templates/example/style.css +1 -1
  11. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +3 -3
  12. modelscope_studio-0.1.0/backend/modelscope_studio/components/MultimodalInput/templates/component/wrapper-6f348d45-f837cf34.js → modelscope_studio-0.1.2/backend/modelscope_studio/components/MultimodalInput/templates/component/wrapper-6f348d45-19fa94bf.js +3 -5
  13. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +205 -205
  14. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/pyproject.toml +1 -1
  15. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/.gitignore +0 -0
  16. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/LICENSE +0 -0
  17. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/README.md +0 -0
  18. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/__init__.py +0 -0
  19. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
  20. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/templates/example/index.js +0 -0
  21. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Chatbot/templates/example/style.css +0 -0
  22. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
  23. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/Markdown/__init__.pyi +0 -0
  24. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/__init__.py +0 -0
  25. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +0 -0
  26. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/__vite-browser-external-2447137e.js +0 -0
  27. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
  28. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
  29. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
  30. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/WaterfallGallery/__init__.py +0 -0
  31. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +0 -0
  32. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +0 -0
  33. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/backend/modelscope_studio/utils/__init__.py +0 -0
  34. {modelscope_studio-0.1.0 → modelscope_studio-0.1.2}/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.0
3
+ Version: 0.1.2
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
@@ -185,6 +185,9 @@ class ModelScopeChatbot(Component):
185
185
  if avatar_images is None:
186
186
  pass
187
187
  else:
188
+ if len(self.avatar_images) != 2:
189
+ raise ValueError(
190
+ "Expected avatar_images to be a tuple of length 2.")
188
191
  for i, avatar_image_item in enumerate(self.avatar_images):
189
192
  if isinstance(avatar_image_item, (list, tuple)):
190
193
  for j, avatar_image in enumerate(avatar_image_item):
@@ -171,6 +171,9 @@ class ModelScopeChatbot(Component):
171
171
  if avatar_images is None:
172
172
  pass
173
173
  else:
174
+ if len(self.avatar_images) != 2:
175
+ raise ValueError(
176
+ "Expected avatar_images to be a tuple of length 2.")
174
177
  for i, avatar_image_item in enumerate(self.avatar_images):
175
178
  if isinstance(avatar_image_item, (list, tuple)):
176
179
  for j, avatar_image in enumerate(avatar_image_item):
@@ -30905,7 +30905,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
30905
30905
  if (T$ || this.commitOrRemove(), !this.hasSelection)
30906
30906
  return;
30907
30907
  St$1(this, y$)[0] += p$, St$1(this, y$)[1] += S$;
30908
- const [k$, P$] = St$1(this, y$), V$ = [...St$1(this, c$)], Z$ = 1e3;
30908
+ const [k$, P$] = St$1(this, y$), V$ = [...St$1(this, c$)];
30909
30909
  St$1(this, _$) && clearTimeout(St$1(this, _$)), ln$1(this, _$, setTimeout(() => {
30910
30910
  ln$1(this, _$, null), St$1(this, y$)[0] = St$1(this, y$)[1] = 0, this.addCommands({
30911
30911
  cmd: () => {
@@ -30918,7 +30918,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
30918
30918
  },
30919
30919
  mustExec: !1
30920
30920
  });
30921
- }, Z$));
30921
+ }, 1e3));
30922
30922
  for (const Q$ of V$)
30923
30923
  Q$.translateInPage(p$, S$);
30924
30924
  }
@@ -97680,7 +97680,7 @@ function instance$4($, ft, Rt) {
97680
97680
  ft = assign$1(assign$1({}, ft), exclude_internal_props($r)), Rt(7, Yt = compute_rest_props(ft, Kt)), "message" in $r && Rt(0, an = $r.message), "complete_message" in $r && Rt(1, yn = $r.complete_message), "flushing" in $r && Rt(2, vn = $r.flushing), "theme" in $r && Rt(3, Sn = $r.theme), "flushing_speed" in $r && Rt(8, An = $r.flushing_speed);
97681
97681
  }, $.$$.update = () => {
97682
97682
  if ($.$$.dirty & /*flushing_speed*/
97683
- 256 && Rt(12, Lt = 100 - Math.max(Math.min(An, 10), 1) * 100 / (10 - 1)), $.$$.dirty & /*message*/
97683
+ 256 && Rt(12, Lt = 100 - Math.max(Math.min(An, 10), 1) * 100 / 9), $.$$.dirty & /*message*/
97684
97684
  1 && Rt(9, kn = [
97685
97685
  ...Array.from(an.matchAll(skip_tag_reg)).map(($r) => ({
97686
97686
  start: $r.index,