modelscope-studio 0.5.0__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.0 → modelscope_studio-0.5.2}/PKG-INFO +2 -2
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/__init__.pyi +24 -5
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/index.js +12 -3
- {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.2/backend/modelscope_studio}/components/Flow/__init__.pyi +12 -3
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/templates/component/index.js +10 -1
- {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.2/backend/modelscope_studio}/components/Lifecycle/__init__.pyi +12 -3
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/__init__.pyi +8 -2
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/index.js +49 -2
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/index.js +1 -1
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/__init__.py +1 -1
- {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.2/backend/modelscope_studio}/components/MultimodalInput/__init__.pyi +29 -8
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/index.js +8 -0
- {modelscope_studio-0.5.0/tests/modelscope_studio2 → modelscope_studio-0.5.2/backend/modelscope_studio}/components/WaterfallGallery/__init__.pyi +24 -5
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/index.js +1461 -1452
- modelscope_studio-0.5.2/backend/modelscope_studio/version.py +1 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/pyproject.toml +2 -2
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Chatbot/__init__.pyi +24 -5
- {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.2/tests/modelscope_studio2}/components/Flow/__init__.pyi +12 -3
- {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.2/tests/modelscope_studio2}/components/Lifecycle/__init__.pyi +12 -3
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/tests/modelscope_studio2/components/Markdown/__init__.pyi +8 -2
- {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.2/tests/modelscope_studio2}/components/MultimodalInput/__init__.pyi +29 -8
- {modelscope_studio-0.5.0/backend/modelscope_studio → modelscope_studio-0.5.2/tests/modelscope_studio2}/components/WaterfallGallery/__init__.pyi +24 -5
- modelscope_studio-0.5.0/backend/modelscope_studio/version.py +0 -1
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/affix/__init__.pyi +0 -105
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/alert/__init__.pyi +0 -110
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/alert/error_boundary/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/anchor/__init__.pyi +0 -197
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/anchor/item/__init__.pyi +0 -60
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/auto_complete/__init__.pyi +0 -387
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/auto_complete/option/__init__.pyi +0 -67
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/avatar/__init__.pyi +0 -113
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/avatar/group/__init__.pyi +0 -93
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/badge/__init__.pyi +0 -66
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/badge/ribbon/__init__.pyi +0 -58
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/breadcrumb/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/breadcrumb/item/__init__.pyi +0 -523
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/button/__init__.pyi +0 -183
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/button/group/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/calendar/__init__.pyi +0 -200
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/card/__init__.pyi +0 -225
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/card/grid/__init__.pyi +0 -113
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/card/meta/__init__.pyi +0 -73
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/carousel/__init__.pyi +0 -59
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/cascader/__init__.pyi +0 -274
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/cascader/option/__init__.pyi +0 -67
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/cascader/panel/__init__.pyi +0 -173
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/checkbox/__init__.pyi +0 -114
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/checkbox/group/__init__.pyi +0 -138
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/checkbox/group/option/__init__.pyi +0 -69
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/collapse/__init__.pyi +0 -135
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/collapse/item/__init__.pyi +0 -110
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/color_picker/__init__.pyi +0 -312
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/color_picker/preset/__init__.pyi +0 -67
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/config_provider/__init__.pyi +0 -61
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/date_picker/__init__.pyi +0 -279
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/date_picker/preset/__init__.pyi +0 -65
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/date_picker/range_picker/__init__.pyi +0 -271
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/descriptions/__init__.pyi +0 -66
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/descriptions/item/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/divider/__init__.pyi +0 -86
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/drawer/__init__.pyi +0 -113
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/dropdown/__init__.pyi +0 -291
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/dropdown/button/__init__.pyi +0 -339
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/empty/__init__.pyi +0 -61
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/flex/__init__.pyi +0 -85
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/float_button/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/float_button/back_top/__init__.pyi +0 -107
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/float_button/group/__init__.pyi +0 -152
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/form/__init__.pyi +0 -256
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/form/item/__init__.pyi +0 -67
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/form/item/rule/__init__.pyi +0 -55
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/grid/col/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/grid/row/__init__.pyi +0 -84
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/icon/__init__.pyi +0 -142
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/icon/iconfont_provider/__init__.pyi +0 -55
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/image/__init__.pyi +0 -203
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/image/preview_group/__init__.pyi +0 -197
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input/__init__.pyi +0 -211
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input/otp/__init__.pyi +0 -114
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input/password/__init__.pyi +0 -255
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input/search/__init__.pyi +0 -256
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input/textarea/__init__.pyi +0 -204
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/input_number/__init__.pyi +0 -215
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/layout/__init__.pyi +0 -115
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/layout/content/__init__.pyi +0 -105
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/layout/footer/__init__.pyi +0 -105
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/layout/header/__init__.pyi +0 -105
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/layout/sider/__init__.pyi +0 -195
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/list/__init__.pyi +0 -154
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/list/item/__init__.pyi +0 -65
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/list/item/meta/__init__.pyi +0 -61
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/mentions/__init__.pyi +0 -387
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/mentions/option/__init__.pyi +0 -71
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/menu/__init__.pyi +0 -250
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/menu/item/__init__.pyi +0 -110
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/message/__init__.pyi +0 -157
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/modal/__init__.pyi +0 -163
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/notification/__init__.pyi +0 -155
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/pagination/__init__.pyi +0 -160
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/popconfirm/__init__.pyi +0 -250
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/popover/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/progress/__init__.pyi +0 -60
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/qr_code/__init__.pyi +0 -107
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/radio/__init__.pyi +0 -124
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/radio/button/__init__.pyi +0 -120
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/radio/group/__init__.pyi +0 -128
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/radio/group/option/__init__.pyi +0 -73
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/rate/__init__.pyi +0 -295
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/result/__init__.pyi +0 -59
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/segmented/__init__.pyi +0 -121
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/segmented/option/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/select/__init__.pyi +0 -463
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/select/option/__init__.pyi +0 -69
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/__init__.pyi +0 -66
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/avatar/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/button/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/image/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/input/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/skeleton/node/__init__.pyi +0 -56
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/slider/__init__.pyi +0 -178
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/slider/mark/__init__.pyi +0 -71
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/space/__init__.pyi +0 -62
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/space/compact/__init__.pyi +0 -55
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/spin/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/statistic/__init__.pyi +0 -64
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/statistic/countdown/__init__.pyi +0 -155
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/steps/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/steps/item/__init__.pyi +0 -59
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/switch/__init__.pyi +0 -160
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/__init__.pyi +0 -180
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/column/__init__.pyi +0 -111
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/column_group/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/expandable/__init__.pyi +0 -161
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/row_selection/__init__.pyi +0 -360
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/table/row_selection/selection/__init__.pyi +0 -114
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tabs/__init__.pyi +0 -254
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tabs/item/__init__.pyi +0 -59
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tag/__init__.pyi +0 -113
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tag/checkable_tag/__init__.pyi +0 -115
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/time_picker/__init__.pyi +0 -214
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/time_picker/range_picker/__init__.pyi +0 -271
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/timeline/__init__.pyi +0 -62
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/timeline/item/__init__.pyi +0 -59
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tooltip/__init__.pyi +0 -108
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tour/__init__.pyi +0 -208
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tour/step/__init__.pyi +0 -199
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/transfer/__init__.pyi +0 -274
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tree/__init__.pyi +0 -582
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tree/directory_tree/__init__.pyi +0 -579
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tree/tree_node/__init__.pyi +0 -63
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tree_select/__init__.pyi +0 -356
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/tree_select/tree_node/__init__.pyi +0 -65
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/typography/link/__init__.pyi +0 -342
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/typography/paragraph/__init__.pyi +0 -480
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/typography/text/__init__.pyi +0 -435
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/typography/title/__init__.pyi +0 -480
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/upload/__init__.pyi +0 -371
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/upload/base.pyi +0 -367
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/upload/dragger/__init__.pyi +0 -368
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/antd/watermark/__init__.pyi +0 -58
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/application/__init__.pyi +0 -135
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/div/__init__.pyi +0 -430
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/each/__init__.pyi +0 -69
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/filter/__init__.pyi +0 -48
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/fragment/__init__.pyi +0 -54
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/slot/__init__.pyi +0 -96
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/span/__init__.pyi +0 -430
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/base/text/__init__.pyi +0 -66
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/Chatbot/__init__.pyi +0 -570
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/Flow/__init__.pyi +0 -279
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/Lifecycle/__init__.pyi +0 -215
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/Markdown/__init__.pyi +0 -222
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/MultimodalInput/__init__.pyi +0 -1325
- modelscope_studio-0.5.0/tests/modelscope_studio2/components/legacy/WaterfallGallery/__init__.pyi +0 -489
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/.gitignore +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/LICENSE +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/README.md +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/llm_thinking_presets.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Chatbot/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/edge.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/node.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/node_schema.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Flow/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/templates/component/index.js +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Lifecycle/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/index-D9i0iVhN.js +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/Markdown/templates/example/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/index.js +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/MultimodalInput/templates/example/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/WaterfallGallery/templates/component/style.css +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/components/__init__.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/external.py +0 -0
- {modelscope_studio-0.5.0 → modelscope_studio-0.5.2}/backend/modelscope_studio/utils/__init__.py +0 -0
- {modelscope_studio-0.5.0 → 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
|
|
@@ -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<
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()[0];
|
|
2696
2704
|
function get_fetchable_url_or_file(ft, Mt, Yt) {
|
|
2697
|
-
|
|
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}`;
|
|
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(
|
|
@@ -173038,7 +173047,7 @@ function create_fragment(ft) {
|
|
|
173038
173047
|
function instance(ft, Mt, Yt) {
|
|
173039
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$;
|
|
173040
173049
|
const $T = (GP) => {
|
|
173041
|
-
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=`;
|
|
173042
173051
|
return GP.includes(kH) ? GP : GP.replaceAll("/file=", kH);
|
|
173043
173052
|
};
|
|
173044
173053
|
function g$(GP) {
|
|
@@ -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
|
|
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
|
|
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
|
|
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()[0];
|
|
2278
2286
|
function get_fetchable_url_or_file(ht, vt, Et) {
|
|
2279
|
-
|
|
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}`;
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
...
|
|
@@ -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
|
}
|
|
@@ -165732,7 +165779,7 @@ const BE = {
|
|
|
165732
165779
|
}, FP = function(ft) {
|
|
165733
165780
|
return ft.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
165734
165781
|
}, BP = /^\\begin{/, PP = function(ft, Mt = []) {
|
|
165735
|
-
if (Mt.length === 0)
|
|
165782
|
+
if (!Mt || Array.isArray(Mt) && Mt.length === 0)
|
|
165736
165783
|
return ft;
|
|
165737
165784
|
let Yt, vn = "";
|
|
165738
165785
|
const Sn = new RegExp(
|
|
@@ -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$) => {
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()[0];
|
|
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
|