Spaces:
Running
Running
A newer version of the Gradio SDK is available:
6.5.1
Overview
modelscope_studio integrates Ant Design X components and supports most component properties. You can use them directly by importing the antdx module.
import modelscope_studio.components.antdx as antdx
Quick Start
Note: Both ms.Application and antd.ConfigProvider are required, ms.AutoLoading is optional.
Applicationcontains all component dependencies inmodelscope_studio. Please ensure that all components exported frommodelscope_studioare wrapped by it, otherwise the page will not be successfully previewed.XProvider(ConfigProvider) functions the same as in Ant Design X(Ant Design). Additionally, we have added some extra adaptations to be compatible with Gradio's styles. Therefore, to ensure normal page styling, allantdxcomponents need to be wrapped within this component.AutoLoadingwill automatically add loading animations to the wrapped content when requests are sent from theGradiofrontend. This component will automatically collect the loading states of child components, it's recommended to use this component at least once globally to provide fallback loading feedback.
Others
Same as Antd components.