Spaces:
Running
Running
|
Download components/antdx/x_provider/README.md from modelscope/modelscope-studio: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/main/components/antdx/x_provider/README.md
- Command line
-
hf download hf://spaces/modelscope/modelscope-studio/components/antdx/x_provider/README.md
-
curl -L -o README.md https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/main/components/antdx/x_provider/README.md
660 Bytes
A newer version of the Gradio SDK is available: 6.31.0
XProvider
Provide a uniform configuration support for x components. See Ant Design X for more information.
The XProvider extends the ConfigProvider from antd and provides global configuration for components in @ant-design/x.
If you are already using ConfigProvider from antd, please make the following changes to your code:
import modelscope_studio.components.antd as antd
import modelscope_studio.components.antdx as antdx
import modelscope_studio.components.base as ms
with gr.Blocks() as demo:
with ms.Application():
- with antd.ConfigProvider():
+ with antdx.XProvider():