modelscope-studio 0.5.1__tar.gz → 0.5.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.
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/PKG-INFO +1 -1
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +4 -4
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/templates/component/index.js +3 -3
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/index.js +48 -1
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +1 -1
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +3 -3
- modelscope_studio-0.5.2/backend/modelscope_studio/version.py +1 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/pyproject.toml +1 -1
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Chatbot/__init__.pyi +25 -7
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Flow/__init__.pyi +13 -5
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Lifecycle/__init__.pyi +13 -5
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Markdown/__init__.pyi +9 -4
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/MultimodalInput/__init__.pyi +30 -10
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/WaterfallGallery/__init__.pyi +25 -7
- modelscope_studio-0.5.1/backend/modelscope_studio/version.py +0 -1
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/affix/__init__.pyi +0 -105
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/alert/__init__.pyi +0 -110
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/alert/error_boundary/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/anchor/__init__.pyi +0 -197
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/anchor/item/__init__.pyi +0 -60
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/auto_complete/__init__.pyi +0 -387
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/auto_complete/option/__init__.pyi +0 -67
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/avatar/__init__.pyi +0 -113
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/avatar/group/__init__.pyi +0 -93
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/badge/__init__.pyi +0 -66
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/badge/ribbon/__init__.pyi +0 -58
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/breadcrumb/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/breadcrumb/item/__init__.pyi +0 -523
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/button/__init__.pyi +0 -183
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/button/group/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/calendar/__init__.pyi +0 -200
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/card/__init__.pyi +0 -225
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/card/grid/__init__.pyi +0 -113
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/card/meta/__init__.pyi +0 -73
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/carousel/__init__.pyi +0 -59
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/cascader/__init__.pyi +0 -274
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/cascader/option/__init__.pyi +0 -67
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/cascader/panel/__init__.pyi +0 -173
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/checkbox/__init__.pyi +0 -114
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/checkbox/group/__init__.pyi +0 -138
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/checkbox/group/option/__init__.pyi +0 -69
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/collapse/__init__.pyi +0 -135
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/collapse/item/__init__.pyi +0 -110
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/color_picker/__init__.pyi +0 -312
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/color_picker/preset/__init__.pyi +0 -67
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/config_provider/__init__.pyi +0 -61
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/date_picker/__init__.pyi +0 -279
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/date_picker/preset/__init__.pyi +0 -65
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/date_picker/range_picker/__init__.pyi +0 -271
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/descriptions/__init__.pyi +0 -66
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/descriptions/item/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/divider/__init__.pyi +0 -86
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/drawer/__init__.pyi +0 -113
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/dropdown/__init__.pyi +0 -291
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/dropdown/button/__init__.pyi +0 -339
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/empty/__init__.pyi +0 -61
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/flex/__init__.pyi +0 -85
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/float_button/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/float_button/back_top/__init__.pyi +0 -107
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/float_button/group/__init__.pyi +0 -152
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/form/__init__.pyi +0 -256
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/form/item/__init__.pyi +0 -67
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/form/item/rule/__init__.pyi +0 -55
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/grid/col/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/grid/row/__init__.pyi +0 -84
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/icon/__init__.pyi +0 -142
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/icon/iconfont_provider/__init__.pyi +0 -55
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/image/__init__.pyi +0 -203
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/image/preview_group/__init__.pyi +0 -197
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input/__init__.pyi +0 -211
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input/otp/__init__.pyi +0 -114
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input/password/__init__.pyi +0 -255
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input/search/__init__.pyi +0 -256
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input/textarea/__init__.pyi +0 -204
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/input_number/__init__.pyi +0 -215
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/layout/__init__.pyi +0 -115
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/layout/content/__init__.pyi +0 -105
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/layout/footer/__init__.pyi +0 -105
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/layout/header/__init__.pyi +0 -105
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/layout/sider/__init__.pyi +0 -195
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/list/__init__.pyi +0 -154
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/list/item/__init__.pyi +0 -65
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/list/item/meta/__init__.pyi +0 -61
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/mentions/__init__.pyi +0 -387
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/mentions/option/__init__.pyi +0 -71
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/menu/__init__.pyi +0 -250
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/menu/item/__init__.pyi +0 -110
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/message/__init__.pyi +0 -157
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/modal/__init__.pyi +0 -163
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/notification/__init__.pyi +0 -155
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/pagination/__init__.pyi +0 -160
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/popconfirm/__init__.pyi +0 -250
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/popover/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/progress/__init__.pyi +0 -60
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/qr_code/__init__.pyi +0 -107
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/radio/__init__.pyi +0 -124
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/radio/button/__init__.pyi +0 -120
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/radio/group/__init__.pyi +0 -128
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/radio/group/option/__init__.pyi +0 -73
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/rate/__init__.pyi +0 -295
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/result/__init__.pyi +0 -59
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/segmented/__init__.pyi +0 -121
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/segmented/option/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/select/__init__.pyi +0 -463
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/select/option/__init__.pyi +0 -69
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/__init__.pyi +0 -66
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/avatar/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/button/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/image/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/input/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/skeleton/node/__init__.pyi +0 -56
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/slider/__init__.pyi +0 -178
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/slider/mark/__init__.pyi +0 -71
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/space/__init__.pyi +0 -62
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/space/compact/__init__.pyi +0 -55
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/spin/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/statistic/__init__.pyi +0 -64
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/statistic/countdown/__init__.pyi +0 -155
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/steps/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/steps/item/__init__.pyi +0 -59
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/switch/__init__.pyi +0 -160
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/__init__.pyi +0 -180
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/column/__init__.pyi +0 -111
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/column_group/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/expandable/__init__.pyi +0 -161
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/row_selection/__init__.pyi +0 -360
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/table/row_selection/selection/__init__.pyi +0 -114
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tabs/__init__.pyi +0 -254
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tabs/item/__init__.pyi +0 -59
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tag/__init__.pyi +0 -113
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tag/checkable_tag/__init__.pyi +0 -115
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/time_picker/__init__.pyi +0 -214
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/time_picker/range_picker/__init__.pyi +0 -271
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/timeline/__init__.pyi +0 -62
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/timeline/item/__init__.pyi +0 -59
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tooltip/__init__.pyi +0 -108
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tour/__init__.pyi +0 -208
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tour/step/__init__.pyi +0 -199
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/transfer/__init__.pyi +0 -274
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tree/__init__.pyi +0 -582
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tree/directory_tree/__init__.pyi +0 -579
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tree/tree_node/__init__.pyi +0 -63
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tree_select/__init__.pyi +0 -356
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/tree_select/tree_node/__init__.pyi +0 -65
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/typography/link/__init__.pyi +0 -342
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/typography/paragraph/__init__.pyi +0 -480
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/typography/text/__init__.pyi +0 -435
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/typography/title/__init__.pyi +0 -480
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/upload/__init__.pyi +0 -371
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/upload/base.pyi +0 -367
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/upload/dragger/__init__.pyi +0 -368
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/antd/watermark/__init__.pyi +0 -58
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/application/__init__.pyi +0 -135
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/div/__init__.pyi +0 -430
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/each/__init__.pyi +0 -69
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/filter/__init__.pyi +0 -48
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/fragment/__init__.pyi +0 -54
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/slot/__init__.pyi +0 -96
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/span/__init__.pyi +0 -430
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/base/text/__init__.pyi +0 -66
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/Chatbot/__init__.pyi +0 -570
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/Flow/__init__.pyi +0 -279
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/Lifecycle/__init__.pyi +0 -215
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/Markdown/__init__.pyi +0 -222
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/MultimodalInput/__init__.pyi +0 -1325
- modelscope_studio-0.5.1/tests/modelscope_studio2/components/legacy/WaterfallGallery/__init__.pyi +0 -489
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/.gitignore +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/LICENSE +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/README.md +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/edge.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/node.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/node_schema.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/templates/component/index.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/index.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/__init__.pyi +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/external.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/utils/__init__.py +0 -0
- {modelscope_studio-0.5.1 → modelscope_studio-0.5.2}/backend/modelscope_studio/utils/process_links.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: modelscope_studio
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.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
|
|
@@ -2700,10 +2700,10 @@ function get_gradio_version() {
|
|
|
2700
2700
|
const Mt = ft.className.match(/gradio-container-(.+)/);
|
|
2701
2701
|
return Mt ? Mt[1] : "";
|
|
2702
2702
|
}
|
|
2703
|
-
const gradio_version = get_gradio_version();
|
|
2703
|
+
const gradio_version = +get_gradio_version()[0];
|
|
2704
2704
|
function get_fetchable_url_or_file(ft, Mt, Yt) {
|
|
2705
|
-
const
|
|
2706
|
-
return ft == null ? Yt ? `/proxy=${Yt}${
|
|
2705
|
+
const vn = gradio_version >= 5 ? "gradio_api/" : "";
|
|
2706
|
+
return ft == null ? Yt ? `/proxy=${Yt}${vn}file=` : `${Mt}${vn}file=` : is_url(ft) ? ft : Yt ? `/proxy=${Yt}${vn}file=${ft}` : `${Mt}/${vn}file=${ft}`;
|
|
2707
2707
|
}
|
|
2708
2708
|
function s() {
|
|
2709
2709
|
Object.hasOwn || (Object.hasOwn = (ft, Mt) => Object.prototype.hasOwnProperty.call(ft, Mt));
|
|
@@ -173047,7 +173047,7 @@ function create_fragment(ft) {
|
|
|
173047
173047
|
function instance(ft, Mt, Yt) {
|
|
173048
173048
|
let { elem_id: vn = "" } = Mt, { elem_classes: Sn = [] } = Mt, { visible: Tn = !0 } = Mt, { scale: wr = null } = Mt, { min_width: kr = void 0 } = Mt, { label: Ar } = Mt, { show_label: jr = !0 } = Mt, { root: np } = Mt, { proxy_url: op } = Mt, { value: z0 = [] } = Mt, { _selectable: Dy = !1 } = Mt, { likeable: e$ = !1 } = Mt, { show_share_button: o$ = !1 } = Mt, { rtl: c$ = !1 } = Mt, { show_copy_button: r$ = !1 } = Mt, { sanitize_html: i$ = !0 } = Mt, { bubble_full_width: s$ = !0 } = Mt, { layout: u$ = "bubble" } = Mt, { render_markdown: h$ = !0 } = Mt, { line_breaks: d$ = !0 } = Mt, { enable_latex: p$ } = Mt, { latex_single_dollar_delimiter: E$ } = Mt, { latex_delimiters: y$ } = Mt, { gradio: S$ } = Mt, { avatar_images: w$ = [null, null] } = Mt, { avatar_image_align: MT = "bottom" } = Mt, { avatar_image_width: m$ } = Mt, { enable_base64: j$ = !1 } = Mt, { preview: Z$ = !0 } = Mt, { flushing: FT = !1 } = Mt, { flushing_speed: BT = 3 } = Mt, { llm_thinking_presets: UT = [] } = Mt, { custom_components: HT = {} } = Mt, C$, Q$;
|
|
173049
173049
|
const $T = (GP) => {
|
|
173050
|
-
const kH = `${np}${op ? `/proxy=${op.endsWith("/") ? op.slice(0, -1) : op}` : ""}/file=`;
|
|
173050
|
+
const kH = `${np}${op ? `/proxy=${op.endsWith("/") ? op.slice(0, -1) : op}` : ""}${gradio_version >= 5 ? "/gradio_api" : ""}/file=`;
|
|
173051
173051
|
return GP.includes(kH) ? GP : GP.replaceAll("/file=", kH);
|
|
173052
173052
|
};
|
|
173053
173053
|
function g$(GP) {
|
|
@@ -2282,10 +2282,10 @@ function get_gradio_version() {
|
|
|
2282
2282
|
const vt = ht.className.match(/gradio-container-(.+)/);
|
|
2283
2283
|
return vt ? vt[1] : "";
|
|
2284
2284
|
}
|
|
2285
|
-
const gradio_version = get_gradio_version();
|
|
2285
|
+
const gradio_version = +get_gradio_version()[0];
|
|
2286
2286
|
function get_fetchable_url_or_file(ht, vt, Et) {
|
|
2287
|
-
const
|
|
2288
|
-
return ht == null ? Et ? `/proxy=${Et}${
|
|
2287
|
+
const _t = gradio_version >= 5 ? "gradio_api/" : "";
|
|
2288
|
+
return ht == null ? Et ? `/proxy=${Et}${_t}file=` : `${vt}${_t}file=` : is_url(ht) ? ht : Et ? `/proxy=${Et}${_t}file=${ht}` : `${vt}/${_t}file=${ht}`;
|
|
2289
2289
|
}
|
|
2290
2290
|
async function upload$1(ht, vt, Et = upload_files) {
|
|
2291
2291
|
const _t = (Array.isArray(ht) ? ht : [ht]).map(
|
|
@@ -2170,6 +2170,53 @@ class Static extends SvelteComponent$4 {
|
|
|
2170
2170
|
);
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
+
var __accessCheck = (ft, Mt, Yt) => {
|
|
2174
|
+
if (!Mt.has(ft))
|
|
2175
|
+
throw TypeError("Cannot " + Yt);
|
|
2176
|
+
}, __privateGet = (ft, Mt, Yt) => (__accessCheck(ft, Mt, "read from private field"), Yt ? Yt.call(ft) : Mt.get(ft)), __privateAdd = (ft, Mt, Yt) => {
|
|
2177
|
+
if (Mt.has(ft))
|
|
2178
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
2179
|
+
Mt instanceof WeakSet ? Mt.add(ft) : Mt.set(ft, Yt);
|
|
2180
|
+
}, __privateSet = (ft, Mt, Yt, vn) => (__accessCheck(ft, Mt, "write to private field"), Mt.set(ft, Yt), Yt), _currentLine;
|
|
2181
|
+
new Intl.Collator(0, { numeric: 1 }).compare;
|
|
2182
|
+
typeof process < "u" && process.versions && process.versions.node;
|
|
2183
|
+
class TextLineStream extends TransformStream {
|
|
2184
|
+
/** Constructs a new instance. */
|
|
2185
|
+
constructor(Mt = { allowCR: !1 }) {
|
|
2186
|
+
super({
|
|
2187
|
+
transform: (Yt, vn) => {
|
|
2188
|
+
for (Yt = __privateGet(this, _currentLine) + Yt; ; ) {
|
|
2189
|
+
const Sn = Yt.indexOf(`
|
|
2190
|
+
`), wr = Mt.allowCR ? Yt.indexOf("\r") : -1;
|
|
2191
|
+
if (wr !== -1 && wr !== Yt.length - 1 && (Sn === -1 || Sn - 1 > wr)) {
|
|
2192
|
+
vn.enqueue(Yt.slice(0, wr)), Yt = Yt.slice(wr + 1);
|
|
2193
|
+
continue;
|
|
2194
|
+
}
|
|
2195
|
+
if (Sn === -1)
|
|
2196
|
+
break;
|
|
2197
|
+
const Tn = Yt[Sn - 1] === "\r" ? Sn - 1 : Sn;
|
|
2198
|
+
vn.enqueue(Yt.slice(0, Tn)), Yt = Yt.slice(Sn + 1);
|
|
2199
|
+
}
|
|
2200
|
+
__privateSet(this, _currentLine, Yt);
|
|
2201
|
+
},
|
|
2202
|
+
flush: (Yt) => {
|
|
2203
|
+
if (__privateGet(this, _currentLine) === "")
|
|
2204
|
+
return;
|
|
2205
|
+
const vn = Mt.allowCR && __privateGet(this, _currentLine).endsWith("\r") ? __privateGet(this, _currentLine).slice(0, -1) : __privateGet(this, _currentLine);
|
|
2206
|
+
Yt.enqueue(vn);
|
|
2207
|
+
}
|
|
2208
|
+
}), __privateAdd(this, _currentLine, "");
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
_currentLine = /* @__PURE__ */ new WeakMap();
|
|
2212
|
+
function get_gradio_version() {
|
|
2213
|
+
const ft = document.querySelector(".gradio-container");
|
|
2214
|
+
if (!ft)
|
|
2215
|
+
return "";
|
|
2216
|
+
const Mt = ft.className.match(/gradio-container-(.+)/);
|
|
2217
|
+
return Mt ? Mt[1] : "";
|
|
2218
|
+
}
|
|
2219
|
+
const gradio_version = +get_gradio_version()[0];
|
|
2173
2220
|
function s() {
|
|
2174
2221
|
Object.hasOwn || (Object.hasOwn = (ft, Mt) => Object.prototype.hasOwnProperty.call(ft, Mt));
|
|
2175
2222
|
}
|
|
@@ -170214,7 +170261,7 @@ function create_fragment(ft) {
|
|
|
170214
170261
|
function instance(ft, Mt, Yt) {
|
|
170215
170262
|
let vn, { label: Sn } = Mt, { elem_id: wr = "" } = Mt, { elem_classes: Tn = [] } = Mt, { visible: kr = !0 } = Mt, { value: Ar = "" } = Mt, { loading_status: jr } = Mt, { rtl: np = !1 } = Mt, { sanitize_html: op = !0 } = Mt, { line_breaks: z0 = !1 } = Mt, { root: Dy } = Mt, { proxy_url: e$ } = Mt, { gradio: a$ } = Mt, { header_links: c$ = !1 } = Mt, { enable_latex: r$ } = Mt, { latex_single_dollar_delimiter: i$ } = Mt, { latex_delimiters: s$ } = Mt, { enable_base64: u$ = !1 } = Mt, { preview: h$ = !0 } = Mt, { custom_components: d$ = {} } = Mt;
|
|
170216
170263
|
const p$ = (S$) => {
|
|
170217
|
-
const v$ = `${Dy}${e$ ? `/proxy=${e$.endsWith("/") ? e$.slice(0, -1) : e$}` : ""}/file=`;
|
|
170264
|
+
const v$ = `${Dy}${e$ ? `/proxy=${e$.endsWith("/") ? e$.slice(0, -1) : e$}` : ""}${gradio_version >= 5 ? "/gradio_api" : ""}/file=`;
|
|
170218
170265
|
return S$.includes(v$) ? S$ : S$.replaceAll("/file=", v$);
|
|
170219
170266
|
}, y$ = () => a$.dispatch("change"), E$ = (S$) => a$.dispatch("custom", S$.detail);
|
|
170220
170267
|
return ft.$$set = (S$) => {
|
|
@@ -2914,7 +2914,7 @@ function get_gradio_version() {
|
|
|
2914
2914
|
const ut = _e.className.match(/gradio-container-(.+)/);
|
|
2915
2915
|
return ut ? ut[1] : "";
|
|
2916
2916
|
}
|
|
2917
|
-
get_gradio_version();
|
|
2917
|
+
+get_gradio_version()[0];
|
|
2918
2918
|
async function upload$1(_e, ut, ft = upload_files) {
|
|
2919
2919
|
const ht = (Array.isArray(_e) ? _e : [_e]).map(
|
|
2920
2920
|
(vt) => vt.blob
|
|
@@ -3818,10 +3818,10 @@ function Ar() {
|
|
|
3818
3818
|
const e = n.className.match(/gradio-container-(.+)/);
|
|
3819
3819
|
return e ? e[1] : "";
|
|
3820
3820
|
}
|
|
3821
|
-
const Rr = Ar();
|
|
3821
|
+
const Rr = +Ar()[0];
|
|
3822
3822
|
function Dr(n, e, t) {
|
|
3823
|
-
const
|
|
3824
|
-
return n == null ? t ? `/proxy=${t}${
|
|
3823
|
+
const l = Rr >= 5 ? "gradio_api/" : "";
|
|
3824
|
+
return n == null ? t ? `/proxy=${t}${l}file=` : `${e}${l}file=` : Mr(n) ? n : t ? `/proxy=${t}${l}file=${n}` : `${e}/${l}file=${n}`;
|
|
3825
3825
|
}
|
|
3826
3826
|
var ul = Object.prototype.hasOwnProperty;
|
|
3827
3827
|
function _l(n, e, t) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.2"
|
|
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = "modelscope_studio"
|
|
11
|
-
version = "0.5.
|
|
11
|
+
version = "0.5.2"
|
|
12
12
|
description = "A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios."
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
license = "Apache-2.0"
|
|
@@ -368,8 +368,7 @@ class ModelScopeChatbot(Component):
|
|
|
368
368
|
"text": "Hello!!",
|
|
369
369
|
"flushing": False
|
|
370
370
|
}]]
|
|
371
|
-
from typing import
|
|
372
|
-
|
|
371
|
+
from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING
|
|
373
372
|
from gradio.blocks import Block
|
|
374
373
|
if TYPE_CHECKING:
|
|
375
374
|
from gradio.components import Timer
|
|
@@ -393,7 +392,9 @@ class ModelScopeChatbot(Component):
|
|
|
393
392
|
js: str | None = None,
|
|
394
393
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
395
394
|
concurrency_id: str | None = None,
|
|
396
|
-
show_api: bool = True
|
|
395
|
+
show_api: bool = True,
|
|
396
|
+
|
|
397
|
+
) -> Dependency:
|
|
397
398
|
"""
|
|
398
399
|
Parameters:
|
|
399
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.
|
|
@@ -414,6 +415,7 @@ class ModelScopeChatbot(Component):
|
|
|
414
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).
|
|
415
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.
|
|
416
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
|
+
|
|
417
419
|
"""
|
|
418
420
|
...
|
|
419
421
|
|
|
@@ -435,7 +437,9 @@ class ModelScopeChatbot(Component):
|
|
|
435
437
|
js: str | None = None,
|
|
436
438
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
437
439
|
concurrency_id: str | None = None,
|
|
438
|
-
show_api: bool = True
|
|
440
|
+
show_api: bool = True,
|
|
441
|
+
|
|
442
|
+
) -> Dependency:
|
|
439
443
|
"""
|
|
440
444
|
Parameters:
|
|
441
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.
|
|
@@ -456,6 +460,7 @@ class ModelScopeChatbot(Component):
|
|
|
456
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).
|
|
457
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.
|
|
458
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
|
+
|
|
459
464
|
"""
|
|
460
465
|
...
|
|
461
466
|
|
|
@@ -477,7 +482,11 @@ class ModelScopeChatbot(Component):
|
|
|
477
482
|
js: str | None = None,
|
|
478
483
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
479
484
|
concurrency_id: str | None = None,
|
|
480
|
-
show_api: bool = True
|
|
485
|
+
show_api: bool = True,
|
|
486
|
+
|
|
487
|
+
like_user_message: bool = False,
|
|
488
|
+
|
|
489
|
+
) -> Dependency:
|
|
481
490
|
"""
|
|
482
491
|
Parameters:
|
|
483
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.
|
|
@@ -498,6 +507,9 @@ class ModelScopeChatbot(Component):
|
|
|
498
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).
|
|
499
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.
|
|
500
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
|
+
|
|
501
513
|
"""
|
|
502
514
|
...
|
|
503
515
|
|
|
@@ -519,7 +531,9 @@ class ModelScopeChatbot(Component):
|
|
|
519
531
|
js: str | None = None,
|
|
520
532
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
521
533
|
concurrency_id: str | None = None,
|
|
522
|
-
show_api: bool = True
|
|
534
|
+
show_api: bool = True,
|
|
535
|
+
|
|
536
|
+
) -> Dependency:
|
|
523
537
|
"""
|
|
524
538
|
Parameters:
|
|
525
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.
|
|
@@ -540,6 +554,7 @@ class ModelScopeChatbot(Component):
|
|
|
540
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).
|
|
541
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.
|
|
542
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
|
+
|
|
543
558
|
"""
|
|
544
559
|
...
|
|
545
560
|
|
|
@@ -561,7 +576,9 @@ class ModelScopeChatbot(Component):
|
|
|
561
576
|
js: str | None = None,
|
|
562
577
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
563
578
|
concurrency_id: str | None = None,
|
|
564
|
-
show_api: bool = True
|
|
579
|
+
show_api: bool = True,
|
|
580
|
+
|
|
581
|
+
) -> Dependency:
|
|
565
582
|
"""
|
|
566
583
|
Parameters:
|
|
567
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.
|
|
@@ -582,5 +599,6 @@ class ModelScopeChatbot(Component):
|
|
|
582
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).
|
|
583
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.
|
|
584
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
|
+
|
|
585
603
|
"""
|
|
586
604
|
...
|
|
@@ -143,8 +143,7 @@ class ModelScopeFlow(Component):
|
|
|
143
143
|
|
|
144
144
|
def example_inputs(self) -> Any:
|
|
145
145
|
return {"nodes": [], "edges": []}
|
|
146
|
-
from typing import
|
|
147
|
-
|
|
146
|
+
from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING
|
|
148
147
|
from gradio.blocks import Block
|
|
149
148
|
if TYPE_CHECKING:
|
|
150
149
|
from gradio.components import Timer
|
|
@@ -168,7 +167,9 @@ class ModelScopeFlow(Component):
|
|
|
168
167
|
js: str | None = None,
|
|
169
168
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
170
169
|
concurrency_id: str | None = None,
|
|
171
|
-
show_api: bool = True
|
|
170
|
+
show_api: bool = True,
|
|
171
|
+
|
|
172
|
+
) -> Dependency:
|
|
172
173
|
"""
|
|
173
174
|
Parameters:
|
|
174
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.
|
|
@@ -189,6 +190,7 @@ class ModelScopeFlow(Component):
|
|
|
189
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).
|
|
190
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.
|
|
191
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
|
+
|
|
192
194
|
"""
|
|
193
195
|
...
|
|
194
196
|
|
|
@@ -210,7 +212,9 @@ class ModelScopeFlow(Component):
|
|
|
210
212
|
js: str | None = None,
|
|
211
213
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
212
214
|
concurrency_id: str | None = None,
|
|
213
|
-
show_api: bool = True
|
|
215
|
+
show_api: bool = True,
|
|
216
|
+
|
|
217
|
+
) -> Dependency:
|
|
214
218
|
"""
|
|
215
219
|
Parameters:
|
|
216
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.
|
|
@@ -231,6 +235,7 @@ class ModelScopeFlow(Component):
|
|
|
231
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).
|
|
232
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.
|
|
233
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
|
+
|
|
234
239
|
"""
|
|
235
240
|
...
|
|
236
241
|
|
|
@@ -252,7 +257,9 @@ class ModelScopeFlow(Component):
|
|
|
252
257
|
js: str | None = None,
|
|
253
258
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
254
259
|
concurrency_id: str | None = None,
|
|
255
|
-
show_api: bool = True
|
|
260
|
+
show_api: bool = True,
|
|
261
|
+
|
|
262
|
+
) -> Dependency:
|
|
256
263
|
"""
|
|
257
264
|
Parameters:
|
|
258
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.
|
|
@@ -273,5 +280,6 @@ class ModelScopeFlow(Component):
|
|
|
273
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).
|
|
274
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.
|
|
275
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
|
+
|
|
276
284
|
"""
|
|
277
285
|
...
|
|
@@ -97,8 +97,7 @@ class ModelScopeLifecycle(Component):
|
|
|
97
97
|
"userAgent":
|
|
98
98
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
|
99
99
|
}
|
|
100
|
-
from typing import
|
|
101
|
-
|
|
100
|
+
from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING
|
|
102
101
|
from gradio.blocks import Block
|
|
103
102
|
if TYPE_CHECKING:
|
|
104
103
|
from gradio.components import Timer
|
|
@@ -122,7 +121,9 @@ class ModelScopeLifecycle(Component):
|
|
|
122
121
|
js: str | None = None,
|
|
123
122
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
124
123
|
concurrency_id: str | None = None,
|
|
125
|
-
show_api: bool = True
|
|
124
|
+
show_api: bool = True,
|
|
125
|
+
|
|
126
|
+
) -> Dependency:
|
|
126
127
|
"""
|
|
127
128
|
Parameters:
|
|
128
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.
|
|
@@ -143,6 +144,7 @@ class ModelScopeLifecycle(Component):
|
|
|
143
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).
|
|
144
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.
|
|
145
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
|
+
|
|
146
148
|
"""
|
|
147
149
|
...
|
|
148
150
|
|
|
@@ -164,7 +166,9 @@ class ModelScopeLifecycle(Component):
|
|
|
164
166
|
js: str | None = None,
|
|
165
167
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
166
168
|
concurrency_id: str | None = None,
|
|
167
|
-
show_api: bool = True
|
|
169
|
+
show_api: bool = True,
|
|
170
|
+
|
|
171
|
+
) -> Dependency:
|
|
168
172
|
"""
|
|
169
173
|
Parameters:
|
|
170
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.
|
|
@@ -185,6 +189,7 @@ class ModelScopeLifecycle(Component):
|
|
|
185
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).
|
|
186
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.
|
|
187
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
|
+
|
|
188
193
|
"""
|
|
189
194
|
...
|
|
190
195
|
|
|
@@ -206,7 +211,9 @@ class ModelScopeLifecycle(Component):
|
|
|
206
211
|
js: str | None = None,
|
|
207
212
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
208
213
|
concurrency_id: str | None = None,
|
|
209
|
-
show_api: bool = True
|
|
214
|
+
show_api: bool = True,
|
|
215
|
+
|
|
216
|
+
) -> Dependency:
|
|
210
217
|
"""
|
|
211
218
|
Parameters:
|
|
212
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.
|
|
@@ -227,5 +234,6 @@ class ModelScopeLifecycle(Component):
|
|
|
227
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).
|
|
228
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.
|
|
229
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
|
+
|
|
230
238
|
"""
|
|
231
239
|
...
|
|
@@ -127,8 +127,7 @@ class ModelScopeMarkdown(Component):
|
|
|
127
127
|
|
|
128
128
|
def api_info(self) -> Dict[str, Any]:
|
|
129
129
|
return {"type": "string"}
|
|
130
|
-
from typing import
|
|
131
|
-
|
|
130
|
+
from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING
|
|
132
131
|
from gradio.blocks import Block
|
|
133
132
|
if TYPE_CHECKING:
|
|
134
133
|
from gradio.components import Timer
|
|
@@ -152,7 +151,9 @@ class ModelScopeMarkdown(Component):
|
|
|
152
151
|
js: str | None = None,
|
|
153
152
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
154
153
|
concurrency_id: str | None = None,
|
|
155
|
-
show_api: bool = True
|
|
154
|
+
show_api: bool = True,
|
|
155
|
+
|
|
156
|
+
) -> Dependency:
|
|
156
157
|
"""
|
|
157
158
|
Parameters:
|
|
158
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.
|
|
@@ -173,6 +174,7 @@ class ModelScopeMarkdown(Component):
|
|
|
173
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).
|
|
174
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.
|
|
175
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
|
+
|
|
176
178
|
"""
|
|
177
179
|
...
|
|
178
180
|
|
|
@@ -194,7 +196,9 @@ class ModelScopeMarkdown(Component):
|
|
|
194
196
|
js: str | None = None,
|
|
195
197
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
196
198
|
concurrency_id: str | None = None,
|
|
197
|
-
show_api: bool = True
|
|
199
|
+
show_api: bool = True,
|
|
200
|
+
|
|
201
|
+
) -> Dependency:
|
|
198
202
|
"""
|
|
199
203
|
Parameters:
|
|
200
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.
|
|
@@ -215,5 +219,6 @@ class ModelScopeMarkdown(Component):
|
|
|
215
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).
|
|
216
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.
|
|
217
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
|
+
|
|
218
223
|
"""
|
|
219
224
|
...
|
|
@@ -209,12 +209,11 @@ 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
|
|
212
|
+
return MultimodalInputData(text=value.text, files=value.files)
|
|
213
213
|
|
|
214
214
|
def example_inputs(self) -> Any:
|
|
215
215
|
return {"text": "Hello!!", "files": []}
|
|
216
|
-
from typing import
|
|
217
|
-
|
|
216
|
+
from typing import Callable, Literal, Sequence, Any, TYPE_CHECKING
|
|
218
217
|
from gradio.blocks import Block
|
|
219
218
|
if TYPE_CHECKING:
|
|
220
219
|
from gradio.components import Timer
|
|
@@ -238,7 +237,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
238
237
|
js: str | None = None,
|
|
239
238
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
240
239
|
concurrency_id: str | None = None,
|
|
241
|
-
show_api: bool = True
|
|
240
|
+
show_api: bool = True,
|
|
241
|
+
|
|
242
|
+
) -> Dependency:
|
|
242
243
|
"""
|
|
243
244
|
Parameters:
|
|
244
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.
|
|
@@ -259,6 +260,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
259
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).
|
|
260
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.
|
|
261
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
|
+
|
|
262
264
|
"""
|
|
263
265
|
...
|
|
264
266
|
|
|
@@ -280,7 +282,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
280
282
|
js: str | None = None,
|
|
281
283
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
282
284
|
concurrency_id: str | None = None,
|
|
283
|
-
show_api: bool = True
|
|
285
|
+
show_api: bool = True,
|
|
286
|
+
|
|
287
|
+
) -> Dependency:
|
|
284
288
|
"""
|
|
285
289
|
Parameters:
|
|
286
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.
|
|
@@ -301,6 +305,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
301
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).
|
|
302
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.
|
|
303
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
|
+
|
|
304
309
|
"""
|
|
305
310
|
...
|
|
306
311
|
|
|
@@ -322,7 +327,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
322
327
|
js: str | None = None,
|
|
323
328
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
324
329
|
concurrency_id: str | None = None,
|
|
325
|
-
show_api: bool = True
|
|
330
|
+
show_api: bool = True,
|
|
331
|
+
|
|
332
|
+
) -> Dependency:
|
|
326
333
|
"""
|
|
327
334
|
Parameters:
|
|
328
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.
|
|
@@ -343,6 +350,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
343
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).
|
|
344
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.
|
|
345
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
|
+
|
|
346
354
|
"""
|
|
347
355
|
...
|
|
348
356
|
|
|
@@ -364,7 +372,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
364
372
|
js: str | None = None,
|
|
365
373
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
366
374
|
concurrency_id: str | None = None,
|
|
367
|
-
show_api: bool = True
|
|
375
|
+
show_api: bool = True,
|
|
376
|
+
|
|
377
|
+
) -> Dependency:
|
|
368
378
|
"""
|
|
369
379
|
Parameters:
|
|
370
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.
|
|
@@ -385,6 +395,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
385
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).
|
|
386
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.
|
|
387
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
|
+
|
|
388
399
|
"""
|
|
389
400
|
...
|
|
390
401
|
|
|
@@ -406,7 +417,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
406
417
|
js: str | None = None,
|
|
407
418
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
408
419
|
concurrency_id: str | None = None,
|
|
409
|
-
show_api: bool = True
|
|
420
|
+
show_api: bool = True,
|
|
421
|
+
|
|
422
|
+
) -> Dependency:
|
|
410
423
|
"""
|
|
411
424
|
Parameters:
|
|
412
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.
|
|
@@ -427,6 +440,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
427
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).
|
|
428
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.
|
|
429
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
|
+
|
|
430
444
|
"""
|
|
431
445
|
...
|
|
432
446
|
|
|
@@ -448,7 +462,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
448
462
|
js: str | None = None,
|
|
449
463
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
450
464
|
concurrency_id: str | None = None,
|
|
451
|
-
show_api: bool = True
|
|
465
|
+
show_api: bool = True,
|
|
466
|
+
|
|
467
|
+
) -> Dependency:
|
|
452
468
|
"""
|
|
453
469
|
Parameters:
|
|
454
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.
|
|
@@ -469,6 +485,7 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
469
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).
|
|
470
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.
|
|
471
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
|
+
|
|
472
489
|
"""
|
|
473
490
|
...
|
|
474
491
|
|
|
@@ -490,7 +507,9 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
490
507
|
js: str | None = None,
|
|
491
508
|
concurrency_limit: int | None | Literal["default"] = "default",
|
|
492
509
|
concurrency_id: str | None = None,
|
|
493
|
-
show_api: bool = True
|
|
510
|
+
show_api: bool = True,
|
|
511
|
+
|
|
512
|
+
) -> Dependency:
|
|
494
513
|
"""
|
|
495
514
|
Parameters:
|
|
496
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.
|
|
@@ -511,5 +530,6 @@ class ModelScopeMultimodalInput(FormComponent):
|
|
|
511
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).
|
|
512
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.
|
|
513
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
|
+
|
|
514
534
|
"""
|
|
515
535
|
...
|