modelscope-studio 0.5.0__tar.gz → 0.5.1__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 (204) hide show
  1. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/PKG-INFO +2 -2
  2. {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.1/backend/modelscope_studio}/components/Chatbot/__init__.pyi +24 -5
  3. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +11 -2
  4. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/__init__.pyi +12 -3
  5. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/templates/component/index.js +10 -1
  6. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Lifecycle/__init__.pyi +12 -3
  7. {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.1/backend/modelscope_studio}/components/Markdown/__init__.pyi +8 -2
  8. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/component/index.js +1 -1
  9. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/example/index.js +1 -1
  10. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/__init__.py +1 -1
  11. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +29 -8
  12. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +8 -0
  13. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +24 -5
  14. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +1461 -1452
  15. modelscope_studio-0.5.1/backend/modelscope_studio/version.py +1 -0
  16. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/pyproject.toml +2 -2
  17. {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.1/tests/modelscope_studio2}/components/Chatbot/__init__.pyi +2 -1
  18. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/Flow/__init__.pyi +2 -1
  19. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/Lifecycle/__init__.pyi +2 -1
  20. {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.1/tests/modelscope_studio2}/components/Markdown/__init__.pyi +2 -1
  21. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/MultimodalInput/__init__.pyi +2 -1
  22. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/WaterfallGallery/__init__.pyi +2 -1
  23. modelscope_studio-0.5.0/backend/modelscope_studio/version.py +0 -1
  24. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/.gitignore +0 -0
  25. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/LICENSE +0 -0
  26. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/README.md +0 -0
  27. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/__init__.py +0 -0
  28. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Chatbot/__init__.py +0 -0
  29. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
  30. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Chatbot/templates/component/index-D9i0iVhN.js +0 -0
  31. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +0 -0
  32. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/__init__.py +0 -0
  33. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/edge.py +0 -0
  34. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/node.py +0 -0
  35. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/node_schema.py +0 -0
  36. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Flow/templates/component/style.css +0 -0
  37. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Lifecycle/__init__.py +0 -0
  38. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Lifecycle/templates/component/index.js +0 -0
  39. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Lifecycle/templates/component/style.css +0 -0
  40. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
  41. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/component/index-D9i0iVhN.js +0 -0
  42. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/component/style.css +0 -0
  43. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/example/index-D9i0iVhN.js +0 -0
  44. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/Markdown/templates/example/style.css +0 -0
  45. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
  46. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
  47. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
  48. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/WaterfallGallery/__init__.py +0 -0
  49. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +0 -0
  50. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/components/__init__.py +0 -0
  51. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/external.py +0 -0
  52. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/utils/__init__.py +0 -0
  53. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/backend/modelscope_studio/utils/process_links.py +0 -0
  54. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/affix/__init__.pyi +0 -0
  55. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/alert/__init__.pyi +0 -0
  56. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/alert/error_boundary/__init__.pyi +0 -0
  57. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/anchor/__init__.pyi +0 -0
  58. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/anchor/item/__init__.pyi +0 -0
  59. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/auto_complete/__init__.pyi +0 -0
  60. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/auto_complete/option/__init__.pyi +0 -0
  61. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/avatar/__init__.pyi +0 -0
  62. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/avatar/group/__init__.pyi +0 -0
  63. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/badge/__init__.pyi +0 -0
  64. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/badge/ribbon/__init__.pyi +0 -0
  65. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/breadcrumb/__init__.pyi +0 -0
  66. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/breadcrumb/item/__init__.pyi +0 -0
  67. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/button/__init__.pyi +0 -0
  68. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/button/group/__init__.pyi +0 -0
  69. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/calendar/__init__.pyi +0 -0
  70. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/card/__init__.pyi +0 -0
  71. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/card/grid/__init__.pyi +0 -0
  72. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/card/meta/__init__.pyi +0 -0
  73. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/carousel/__init__.pyi +0 -0
  74. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/cascader/__init__.pyi +0 -0
  75. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/cascader/option/__init__.pyi +0 -0
  76. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/cascader/panel/__init__.pyi +0 -0
  77. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/checkbox/__init__.pyi +0 -0
  78. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/checkbox/group/__init__.pyi +0 -0
  79. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/checkbox/group/option/__init__.pyi +0 -0
  80. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/collapse/__init__.pyi +0 -0
  81. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/collapse/item/__init__.pyi +0 -0
  82. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/color_picker/__init__.pyi +0 -0
  83. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/color_picker/preset/__init__.pyi +0 -0
  84. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/config_provider/__init__.pyi +0 -0
  85. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/date_picker/__init__.pyi +0 -0
  86. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/date_picker/preset/__init__.pyi +0 -0
  87. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/date_picker/range_picker/__init__.pyi +0 -0
  88. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/descriptions/__init__.pyi +0 -0
  89. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/descriptions/item/__init__.pyi +0 -0
  90. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/divider/__init__.pyi +0 -0
  91. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/drawer/__init__.pyi +0 -0
  92. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/dropdown/__init__.pyi +0 -0
  93. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/dropdown/button/__init__.pyi +0 -0
  94. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/empty/__init__.pyi +0 -0
  95. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/flex/__init__.pyi +0 -0
  96. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/float_button/__init__.pyi +0 -0
  97. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/float_button/back_top/__init__.pyi +0 -0
  98. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/float_button/group/__init__.pyi +0 -0
  99. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/form/__init__.pyi +0 -0
  100. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/form/item/__init__.pyi +0 -0
  101. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/form/item/rule/__init__.pyi +0 -0
  102. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/grid/col/__init__.pyi +0 -0
  103. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/grid/row/__init__.pyi +0 -0
  104. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/icon/__init__.pyi +0 -0
  105. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/icon/iconfont_provider/__init__.pyi +0 -0
  106. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/image/__init__.pyi +0 -0
  107. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/image/preview_group/__init__.pyi +0 -0
  108. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input/__init__.pyi +0 -0
  109. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input/otp/__init__.pyi +0 -0
  110. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input/password/__init__.pyi +0 -0
  111. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input/search/__init__.pyi +0 -0
  112. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input/textarea/__init__.pyi +0 -0
  113. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/input_number/__init__.pyi +0 -0
  114. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/layout/__init__.pyi +0 -0
  115. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/layout/content/__init__.pyi +0 -0
  116. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/layout/footer/__init__.pyi +0 -0
  117. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/layout/header/__init__.pyi +0 -0
  118. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/layout/sider/__init__.pyi +0 -0
  119. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/list/__init__.pyi +0 -0
  120. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/list/item/__init__.pyi +0 -0
  121. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/list/item/meta/__init__.pyi +0 -0
  122. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/mentions/__init__.pyi +0 -0
  123. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/mentions/option/__init__.pyi +0 -0
  124. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/menu/__init__.pyi +0 -0
  125. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/menu/item/__init__.pyi +0 -0
  126. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/message/__init__.pyi +0 -0
  127. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/modal/__init__.pyi +0 -0
  128. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/notification/__init__.pyi +0 -0
  129. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/pagination/__init__.pyi +0 -0
  130. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/popconfirm/__init__.pyi +0 -0
  131. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/popover/__init__.pyi +0 -0
  132. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/progress/__init__.pyi +0 -0
  133. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/qr_code/__init__.pyi +0 -0
  134. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/radio/__init__.pyi +0 -0
  135. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/radio/button/__init__.pyi +0 -0
  136. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/radio/group/__init__.pyi +0 -0
  137. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/radio/group/option/__init__.pyi +0 -0
  138. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/rate/__init__.pyi +0 -0
  139. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/result/__init__.pyi +0 -0
  140. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/segmented/__init__.pyi +0 -0
  141. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/segmented/option/__init__.pyi +0 -0
  142. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/select/__init__.pyi +0 -0
  143. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/select/option/__init__.pyi +0 -0
  144. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/__init__.pyi +0 -0
  145. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/avatar/__init__.pyi +0 -0
  146. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/button/__init__.pyi +0 -0
  147. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/image/__init__.pyi +0 -0
  148. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/input/__init__.pyi +0 -0
  149. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/skeleton/node/__init__.pyi +0 -0
  150. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/slider/__init__.pyi +0 -0
  151. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/slider/mark/__init__.pyi +0 -0
  152. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/space/__init__.pyi +0 -0
  153. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/space/compact/__init__.pyi +0 -0
  154. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/spin/__init__.pyi +0 -0
  155. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/statistic/__init__.pyi +0 -0
  156. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/statistic/countdown/__init__.pyi +0 -0
  157. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/steps/__init__.pyi +0 -0
  158. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/steps/item/__init__.pyi +0 -0
  159. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/switch/__init__.pyi +0 -0
  160. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/__init__.pyi +0 -0
  161. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/column/__init__.pyi +0 -0
  162. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/column_group/__init__.pyi +0 -0
  163. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/expandable/__init__.pyi +0 -0
  164. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/row_selection/__init__.pyi +0 -0
  165. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/table/row_selection/selection/__init__.pyi +0 -0
  166. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tabs/__init__.pyi +0 -0
  167. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tabs/item/__init__.pyi +0 -0
  168. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tag/__init__.pyi +0 -0
  169. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tag/checkable_tag/__init__.pyi +0 -0
  170. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/time_picker/__init__.pyi +0 -0
  171. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/time_picker/range_picker/__init__.pyi +0 -0
  172. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/timeline/__init__.pyi +0 -0
  173. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/timeline/item/__init__.pyi +0 -0
  174. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tooltip/__init__.pyi +0 -0
  175. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tour/__init__.pyi +0 -0
  176. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tour/step/__init__.pyi +0 -0
  177. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/transfer/__init__.pyi +0 -0
  178. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tree/__init__.pyi +0 -0
  179. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tree/directory_tree/__init__.pyi +0 -0
  180. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tree/tree_node/__init__.pyi +0 -0
  181. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tree_select/__init__.pyi +0 -0
  182. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/tree_select/tree_node/__init__.pyi +0 -0
  183. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/typography/link/__init__.pyi +0 -0
  184. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/typography/paragraph/__init__.pyi +0 -0
  185. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/typography/text/__init__.pyi +0 -0
  186. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/typography/title/__init__.pyi +0 -0
  187. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/upload/__init__.pyi +0 -0
  188. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/upload/base.pyi +0 -0
  189. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/upload/dragger/__init__.pyi +0 -0
  190. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/antd/watermark/__init__.pyi +0 -0
  191. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/application/__init__.pyi +0 -0
  192. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/div/__init__.pyi +0 -0
  193. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/each/__init__.pyi +0 -0
  194. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/filter/__init__.pyi +0 -0
  195. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/fragment/__init__.pyi +0 -0
  196. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/slot/__init__.pyi +0 -0
  197. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/span/__init__.pyi +0 -0
  198. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/base/text/__init__.pyi +0 -0
  199. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/Chatbot/__init__.pyi +0 -0
  200. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/Flow/__init__.pyi +0 -0
  201. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/Lifecycle/__init__.pyi +0 -0
  202. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/Markdown/__init__.pyi +0 -0
  203. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/MultimodalInput/__init__.pyi +0 -0
  204. {modelscope_studio-0.5.0 → modelscope_studio-0.5.1}/tests/modelscope_studio2/components/legacy/WaterfallGallery/__init__.pyi +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: modelscope_studio
3
- Version: 0.5.0
3
+ Version: 0.5.1
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
@@ -19,7 +19,7 @@ Classifier: Topic :: Scientific/Engineering
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Classifier: Topic :: Scientific/Engineering :: Visualization
21
21
  Requires-Python: >=3.8
22
- Requires-Dist: gradio<5.0,>=4.0
22
+ Requires-Dist: gradio<6.0,>=4.0
23
23
  Provides-Extra: dev
24
24
  Requires-Dist: build; extra == 'dev'
25
25
  Requires-Dist: twine; extra == 'dev'
@@ -392,7 +392,9 @@ class ModelScopeChatbot(Component):
392
392
  js: str | None = None,
393
393
  concurrency_limit: int | None | Literal["default"] = "default",
394
394
  concurrency_id: str | None = None,
395
- show_api: bool = True) -> Dependency:
395
+ show_api: bool = True,
396
+
397
+ ) -> Dependency:
396
398
  """
397
399
  Parameters:
398
400
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -413,6 +415,7 @@ class ModelScopeChatbot(Component):
413
415
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
414
416
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
415
417
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
418
+
416
419
  """
417
420
  ...
418
421
 
@@ -434,7 +437,9 @@ class ModelScopeChatbot(Component):
434
437
  js: str | None = None,
435
438
  concurrency_limit: int | None | Literal["default"] = "default",
436
439
  concurrency_id: str | None = None,
437
- show_api: bool = True) -> Dependency:
440
+ show_api: bool = True,
441
+
442
+ ) -> Dependency:
438
443
  """
439
444
  Parameters:
440
445
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -455,6 +460,7 @@ class ModelScopeChatbot(Component):
455
460
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
456
461
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
457
462
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
463
+
458
464
  """
459
465
  ...
460
466
 
@@ -476,7 +482,11 @@ class ModelScopeChatbot(Component):
476
482
  js: str | None = None,
477
483
  concurrency_limit: int | None | Literal["default"] = "default",
478
484
  concurrency_id: str | None = None,
479
- show_api: bool = True) -> Dependency:
485
+ show_api: bool = True,
486
+
487
+ like_user_message: bool = False,
488
+
489
+ ) -> Dependency:
480
490
  """
481
491
  Parameters:
482
492
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -497,6 +507,9 @@ class ModelScopeChatbot(Component):
497
507
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
498
508
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
499
509
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
510
+
511
+ like_user_message: Whether to display the like buttons for user messages in the chatbot.,
512
+
500
513
  """
501
514
  ...
502
515
 
@@ -518,7 +531,9 @@ class ModelScopeChatbot(Component):
518
531
  js: str | None = None,
519
532
  concurrency_limit: int | None | Literal["default"] = "default",
520
533
  concurrency_id: str | None = None,
521
- show_api: bool = True) -> Dependency:
534
+ show_api: bool = True,
535
+
536
+ ) -> Dependency:
522
537
  """
523
538
  Parameters:
524
539
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -539,6 +554,7 @@ class ModelScopeChatbot(Component):
539
554
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
540
555
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
541
556
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
557
+
542
558
  """
543
559
  ...
544
560
 
@@ -560,7 +576,9 @@ class ModelScopeChatbot(Component):
560
576
  js: str | None = None,
561
577
  concurrency_limit: int | None | Literal["default"] = "default",
562
578
  concurrency_id: str | None = None,
563
- show_api: bool = True) -> Dependency:
579
+ show_api: bool = True,
580
+
581
+ ) -> Dependency:
564
582
  """
565
583
  Parameters:
566
584
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -581,5 +599,6 @@ class ModelScopeChatbot(Component):
581
599
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
582
600
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
583
601
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
602
+
584
603
  """
585
604
  ...
@@ -2693,8 +2693,17 @@ function is_url(ft) {
2693
2693
  return !1;
2694
2694
  }
2695
2695
  }
2696
+ function get_gradio_version() {
2697
+ const ft = document.querySelector(".gradio-container");
2698
+ if (!ft)
2699
+ return "";
2700
+ const Mt = ft.className.match(/gradio-container-(.+)/);
2701
+ return Mt ? Mt[1] : "";
2702
+ }
2703
+ const gradio_version = get_gradio_version();
2696
2704
  function get_fetchable_url_or_file(ft, Mt, Yt) {
2697
- return ft == null ? Yt ? `/proxy=${Yt}file=` : `${Mt}/file=` : is_url(ft) ? ft : Yt ? `/proxy=${Yt}file=${ft}` : `${Mt}/file=${ft}`;
2705
+ const Sn = +gradio_version[0] >= 5 ? "gradio_api/" : "";
2706
+ return ft == null ? Yt ? `/proxy=${Yt}${Sn}file=` : `${Mt}${Sn}file=` : is_url(ft) ? ft : Yt ? `/proxy=${Yt}${Sn}file=${ft}` : `${Mt}/${Sn}file=${ft}`;
2698
2707
  }
2699
2708
  function s() {
2700
2709
  Object.hasOwn || (Object.hasOwn = (ft, Mt) => Object.prototype.hasOwnProperty.call(ft, Mt));
@@ -166258,7 +166267,7 @@ const BE = {
166258
166267
  }, FP = function(ft) {
166259
166268
  return ft.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
166260
166269
  }, BP = /^\\begin{/, PP = function(ft, Mt = []) {
166261
- if (Mt.length === 0)
166270
+ if (!Mt || Array.isArray(Mt) && Mt.length === 0)
166262
166271
  return ft;
166263
166272
  let Yt, vn = "";
166264
166273
  const Sn = new RegExp(
@@ -167,7 +167,9 @@ class ModelScopeFlow(Component):
167
167
  js: str | None = None,
168
168
  concurrency_limit: int | None | Literal["default"] = "default",
169
169
  concurrency_id: str | None = None,
170
- show_api: bool = True) -> Dependency:
170
+ show_api: bool = True,
171
+
172
+ ) -> Dependency:
171
173
  """
172
174
  Parameters:
173
175
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -188,6 +190,7 @@ class ModelScopeFlow(Component):
188
190
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
189
191
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
190
192
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
193
+
191
194
  """
192
195
  ...
193
196
 
@@ -209,7 +212,9 @@ class ModelScopeFlow(Component):
209
212
  js: str | None = None,
210
213
  concurrency_limit: int | None | Literal["default"] = "default",
211
214
  concurrency_id: str | None = None,
212
- show_api: bool = True) -> Dependency:
215
+ show_api: bool = True,
216
+
217
+ ) -> Dependency:
213
218
  """
214
219
  Parameters:
215
220
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -230,6 +235,7 @@ class ModelScopeFlow(Component):
230
235
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
231
236
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
232
237
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
238
+
233
239
  """
234
240
  ...
235
241
 
@@ -251,7 +257,9 @@ class ModelScopeFlow(Component):
251
257
  js: str | None = None,
252
258
  concurrency_limit: int | None | Literal["default"] = "default",
253
259
  concurrency_id: str | None = None,
254
- show_api: bool = True) -> Dependency:
260
+ show_api: bool = True,
261
+
262
+ ) -> Dependency:
255
263
  """
256
264
  Parameters:
257
265
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -272,5 +280,6 @@ class ModelScopeFlow(Component):
272
280
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
273
281
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
274
282
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
283
+
275
284
  """
276
285
  ...
@@ -2275,8 +2275,17 @@ function is_url(ht) {
2275
2275
  return !1;
2276
2276
  }
2277
2277
  }
2278
+ function get_gradio_version() {
2279
+ const ht = document.querySelector(".gradio-container");
2280
+ if (!ht)
2281
+ return "";
2282
+ const vt = ht.className.match(/gradio-container-(.+)/);
2283
+ return vt ? vt[1] : "";
2284
+ }
2285
+ const gradio_version = get_gradio_version();
2278
2286
  function get_fetchable_url_or_file(ht, vt, Et) {
2279
- return ht == null ? Et ? `/proxy=${Et}file=` : `${vt}/file=` : is_url(ht) ? ht : Et ? `/proxy=${Et}file=${ht}` : `${vt}/file=${ht}`;
2287
+ const kt = +gradio_version[0] >= 5 ? "gradio_api/" : "";
2288
+ return ht == null ? Et ? `/proxy=${Et}${kt}file=` : `${vt}${kt}file=` : is_url(ht) ? ht : Et ? `/proxy=${Et}${kt}file=${ht}` : `${vt}/${kt}file=${ht}`;
2280
2289
  }
2281
2290
  async function upload$1(ht, vt, Et = upload_files) {
2282
2291
  const _t = (Array.isArray(ht) ? ht : [ht]).map(
@@ -121,7 +121,9 @@ class ModelScopeLifecycle(Component):
121
121
  js: str | None = None,
122
122
  concurrency_limit: int | None | Literal["default"] = "default",
123
123
  concurrency_id: str | None = None,
124
- show_api: bool = True) -> Dependency:
124
+ show_api: bool = True,
125
+
126
+ ) -> Dependency:
125
127
  """
126
128
  Parameters:
127
129
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -142,6 +144,7 @@ class ModelScopeLifecycle(Component):
142
144
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
143
145
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
144
146
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
147
+
145
148
  """
146
149
  ...
147
150
 
@@ -163,7 +166,9 @@ class ModelScopeLifecycle(Component):
163
166
  js: str | None = None,
164
167
  concurrency_limit: int | None | Literal["default"] = "default",
165
168
  concurrency_id: str | None = None,
166
- show_api: bool = True) -> Dependency:
169
+ show_api: bool = True,
170
+
171
+ ) -> Dependency:
167
172
  """
168
173
  Parameters:
169
174
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -184,6 +189,7 @@ class ModelScopeLifecycle(Component):
184
189
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
185
190
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
186
191
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
192
+
187
193
  """
188
194
  ...
189
195
 
@@ -205,7 +211,9 @@ class ModelScopeLifecycle(Component):
205
211
  js: str | None = None,
206
212
  concurrency_limit: int | None | Literal["default"] = "default",
207
213
  concurrency_id: str | None = None,
208
- show_api: bool = True) -> Dependency:
214
+ show_api: bool = True,
215
+
216
+ ) -> Dependency:
209
217
  """
210
218
  Parameters:
211
219
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -226,5 +234,6 @@ class ModelScopeLifecycle(Component):
226
234
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
227
235
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
228
236
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
237
+
229
238
  """
230
239
  ...
@@ -151,7 +151,9 @@ class ModelScopeMarkdown(Component):
151
151
  js: str | None = None,
152
152
  concurrency_limit: int | None | Literal["default"] = "default",
153
153
  concurrency_id: str | None = None,
154
- show_api: bool = True) -> Dependency:
154
+ show_api: bool = True,
155
+
156
+ ) -> Dependency:
155
157
  """
156
158
  Parameters:
157
159
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -172,6 +174,7 @@ class ModelScopeMarkdown(Component):
172
174
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
173
175
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
174
176
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
177
+
175
178
  """
176
179
  ...
177
180
 
@@ -193,7 +196,9 @@ class ModelScopeMarkdown(Component):
193
196
  js: str | None = None,
194
197
  concurrency_limit: int | None | Literal["default"] = "default",
195
198
  concurrency_id: str | None = None,
196
- show_api: bool = True) -> Dependency:
199
+ show_api: bool = True,
200
+
201
+ ) -> Dependency:
197
202
  """
198
203
  Parameters:
199
204
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -214,5 +219,6 @@ class ModelScopeMarkdown(Component):
214
219
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
215
220
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
216
221
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
222
+
217
223
  """
218
224
  ...
@@ -165732,7 +165732,7 @@ const BE = {
165732
165732
  }, FP = function(ft) {
165733
165733
  return ft.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
165734
165734
  }, BP = /^\\begin{/, PP = function(ft, Mt = []) {
165735
- if (Mt.length === 0)
165735
+ if (!Mt || Array.isArray(Mt) && Mt.length === 0)
165736
165736
  return ft;
165737
165737
  let Yt, vn = "";
165738
165738
  const Sn = new RegExp(
@@ -163560,7 +163560,7 @@ const BE = {
163560
163560
  }, FP = function(ft) {
163561
163561
  return ft.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
163562
163562
  }, BP = /^\\begin{/, PP = function(ft, Mt = []) {
163563
- if (Mt.length === 0)
163563
+ if (!Mt || Array.isArray(Mt) && Mt.length === 0)
163564
163564
  return ft;
163565
163565
  let Yt, vn = "";
163566
163566
  const Sn = new RegExp(
@@ -208,7 +208,7 @@ class ModelScopeMultimodalInput(FormComponent):
208
208
  value.files[i].mime_type = client_utils.get_mimetype(
209
209
  value.files[i].path)
210
210
  # gradio fix
211
- return {"files": value.files or [], "text": value.text}
211
+ return MultimodalInputData(text=value.text, files=value.files)
212
212
 
213
213
  def example_inputs(self) -> Any:
214
214
  return {"text": "Hello!!", "files": []}
@@ -209,7 +209,7 @@ class ModelScopeMultimodalInput(FormComponent):
209
209
  value.files[i].mime_type = client_utils.get_mimetype(
210
210
  value.files[i].path)
211
211
  # gradio fix
212
- return {"files": value.files or [], "text": value.text}
212
+ return MultimodalInputData(text=value.text, files=value.files)
213
213
 
214
214
  def example_inputs(self) -> Any:
215
215
  return {"text": "Hello!!", "files": []}
@@ -237,7 +237,9 @@ class ModelScopeMultimodalInput(FormComponent):
237
237
  js: str | None = None,
238
238
  concurrency_limit: int | None | Literal["default"] = "default",
239
239
  concurrency_id: str | None = None,
240
- show_api: bool = True) -> Dependency:
240
+ show_api: bool = True,
241
+
242
+ ) -> Dependency:
241
243
  """
242
244
  Parameters:
243
245
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -258,6 +260,7 @@ class ModelScopeMultimodalInput(FormComponent):
258
260
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
259
261
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
260
262
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
263
+
261
264
  """
262
265
  ...
263
266
 
@@ -279,7 +282,9 @@ class ModelScopeMultimodalInput(FormComponent):
279
282
  js: str | None = None,
280
283
  concurrency_limit: int | None | Literal["default"] = "default",
281
284
  concurrency_id: str | None = None,
282
- show_api: bool = True) -> Dependency:
285
+ show_api: bool = True,
286
+
287
+ ) -> Dependency:
283
288
  """
284
289
  Parameters:
285
290
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -300,6 +305,7 @@ class ModelScopeMultimodalInput(FormComponent):
300
305
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
301
306
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
302
307
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
308
+
303
309
  """
304
310
  ...
305
311
 
@@ -321,7 +327,9 @@ class ModelScopeMultimodalInput(FormComponent):
321
327
  js: str | None = None,
322
328
  concurrency_limit: int | None | Literal["default"] = "default",
323
329
  concurrency_id: str | None = None,
324
- show_api: bool = True) -> Dependency:
330
+ show_api: bool = True,
331
+
332
+ ) -> Dependency:
325
333
  """
326
334
  Parameters:
327
335
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -342,6 +350,7 @@ class ModelScopeMultimodalInput(FormComponent):
342
350
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
343
351
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
344
352
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
353
+
345
354
  """
346
355
  ...
347
356
 
@@ -363,7 +372,9 @@ class ModelScopeMultimodalInput(FormComponent):
363
372
  js: str | None = None,
364
373
  concurrency_limit: int | None | Literal["default"] = "default",
365
374
  concurrency_id: str | None = None,
366
- show_api: bool = True) -> Dependency:
375
+ show_api: bool = True,
376
+
377
+ ) -> Dependency:
367
378
  """
368
379
  Parameters:
369
380
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -384,6 +395,7 @@ class ModelScopeMultimodalInput(FormComponent):
384
395
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
385
396
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
386
397
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
398
+
387
399
  """
388
400
  ...
389
401
 
@@ -405,7 +417,9 @@ class ModelScopeMultimodalInput(FormComponent):
405
417
  js: str | None = None,
406
418
  concurrency_limit: int | None | Literal["default"] = "default",
407
419
  concurrency_id: str | None = None,
408
- show_api: bool = True) -> Dependency:
420
+ show_api: bool = True,
421
+
422
+ ) -> Dependency:
409
423
  """
410
424
  Parameters:
411
425
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -426,6 +440,7 @@ class ModelScopeMultimodalInput(FormComponent):
426
440
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
427
441
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
428
442
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
443
+
429
444
  """
430
445
  ...
431
446
 
@@ -447,7 +462,9 @@ class ModelScopeMultimodalInput(FormComponent):
447
462
  js: str | None = None,
448
463
  concurrency_limit: int | None | Literal["default"] = "default",
449
464
  concurrency_id: str | None = None,
450
- show_api: bool = True) -> Dependency:
465
+ show_api: bool = True,
466
+
467
+ ) -> Dependency:
451
468
  """
452
469
  Parameters:
453
470
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -468,6 +485,7 @@ class ModelScopeMultimodalInput(FormComponent):
468
485
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
469
486
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
470
487
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
488
+
471
489
  """
472
490
  ...
473
491
 
@@ -489,7 +507,9 @@ class ModelScopeMultimodalInput(FormComponent):
489
507
  js: str | None = None,
490
508
  concurrency_limit: int | None | Literal["default"] = "default",
491
509
  concurrency_id: str | None = None,
492
- show_api: bool = True) -> Dependency:
510
+ show_api: bool = True,
511
+
512
+ ) -> Dependency:
493
513
  """
494
514
  Parameters:
495
515
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -510,5 +530,6 @@ class ModelScopeMultimodalInput(FormComponent):
510
530
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
511
531
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
512
532
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
533
+
513
534
  """
514
535
  ...
@@ -2907,6 +2907,14 @@ class Static extends SvelteComponent$f {
2907
2907
  );
2908
2908
  }
2909
2909
  }
2910
+ function get_gradio_version() {
2911
+ const _e = document.querySelector(".gradio-container");
2912
+ if (!_e)
2913
+ return "";
2914
+ const ut = _e.className.match(/gradio-container-(.+)/);
2915
+ return ut ? ut[1] : "";
2916
+ }
2917
+ get_gradio_version();
2910
2918
  async function upload$1(_e, ut, ft = upload_files) {
2911
2919
  const ht = (Array.isArray(_e) ? _e : [_e]).map(
2912
2920
  (vt) => vt.blob
@@ -288,7 +288,9 @@ class ModelScopeWaterfallGallery(Component):
288
288
  js: str | None = None,
289
289
  concurrency_limit: int | None | Literal["default"] = "default",
290
290
  concurrency_id: str | None = None,
291
- show_api: bool = True) -> Dependency:
291
+ show_api: bool = True,
292
+
293
+ ) -> Dependency:
292
294
  """
293
295
  Parameters:
294
296
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -309,6 +311,7 @@ class ModelScopeWaterfallGallery(Component):
309
311
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
310
312
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
311
313
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
314
+
312
315
  """
313
316
  ...
314
317
 
@@ -330,7 +333,9 @@ class ModelScopeWaterfallGallery(Component):
330
333
  js: str | None = None,
331
334
  concurrency_limit: int | None | Literal["default"] = "default",
332
335
  concurrency_id: str | None = None,
333
- show_api: bool = True) -> Dependency:
336
+ show_api: bool = True,
337
+
338
+ ) -> Dependency:
334
339
  """
335
340
  Parameters:
336
341
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -351,6 +356,7 @@ class ModelScopeWaterfallGallery(Component):
351
356
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
352
357
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
353
358
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
359
+
354
360
  """
355
361
  ...
356
362
 
@@ -372,7 +378,11 @@ class ModelScopeWaterfallGallery(Component):
372
378
  js: str | None = None,
373
379
  concurrency_limit: int | None | Literal["default"] = "default",
374
380
  concurrency_id: str | None = None,
375
- show_api: bool = True) -> Dependency:
381
+ show_api: bool = True,
382
+
383
+ like_user_message: bool = False,
384
+
385
+ ) -> Dependency:
376
386
  """
377
387
  Parameters:
378
388
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -393,6 +403,9 @@ class ModelScopeWaterfallGallery(Component):
393
403
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
394
404
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
395
405
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
406
+
407
+ like_user_message: Whether to display the like buttons for user messages in the chatbot.,
408
+
396
409
  """
397
410
  ...
398
411
 
@@ -414,7 +427,9 @@ class ModelScopeWaterfallGallery(Component):
414
427
  js: str | None = None,
415
428
  concurrency_limit: int | None | Literal["default"] = "default",
416
429
  concurrency_id: str | None = None,
417
- show_api: bool = True) -> Dependency:
430
+ show_api: bool = True,
431
+
432
+ ) -> Dependency:
418
433
  """
419
434
  Parameters:
420
435
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -435,6 +450,7 @@ class ModelScopeWaterfallGallery(Component):
435
450
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
436
451
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
437
452
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
453
+
438
454
  """
439
455
  ...
440
456
 
@@ -456,7 +472,9 @@ class ModelScopeWaterfallGallery(Component):
456
472
  js: str | None = None,
457
473
  concurrency_limit: int | None | Literal["default"] = "default",
458
474
  concurrency_id: str | None = None,
459
- show_api: bool = True) -> Dependency:
475
+ show_api: bool = True,
476
+
477
+ ) -> Dependency:
460
478
  """
461
479
  Parameters:
462
480
  fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
@@ -477,5 +495,6 @@ class ModelScopeWaterfallGallery(Component):
477
495
  concurrency_limit: if set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
478
496
  concurrency_id: if set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
479
497
  show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False.
498
+
480
499
  """
481
500
  ...