ModelScope Studio
✖️
GitHub | 🤖 ModelScope Studio | 🤗 Hugging Face Space
中文 | English | 日本語
modelscope_studio is a third-party component library based on Gradio, offers developers more customized interface building capabilities and a richer variety of component usage forms.
Currently supported UI libraries:
When to Use
Compared to the original components of Gradio, modelscope_studio focuses more on page layout and component flexibility. If you want to build a more beautiful user interface, we highly recommend using modelscope_studio.
However, when your application needs Gradio to handle more built-in data on the Python side, the components of modelscope_studio may not be the best choice, but don't worry, it integrates well with existing Gradio components, you can still use modelscope_studio to optimize your application.
If you are using
modelscope_studioin Hugging Face Space, please add thessr_mode=Falseparameter to thedemo.launch():demo.launch(ssr_mode=False), otherwise the page may not display properly.
Dependencies
- Gradio >= 6.28.0
Installation
pip install modelscope_studio
If you need to use 4.43.0 <= Gradio < 6.0.0, please use 1.x version:
pip install modelscope_studio~=1.0
Quick Start
import gradio as gr
import modelscope_studio.components.antd as antd
import modelscope_studio.components.base as ms
with gr.Blocks() as demo:
with ms.Application(), antd.ConfigProvider(), ms.AutoLoading():
antd.DatePicker()
demo.queue().launch()
Documentation and Examples
Wiki
Development
Clone this repo locally:
git clone git@github.com:modelscope/modelscope-studio.git
cd modelscope-studio
# for backend
pip install -e '.'
# for frontend
npm install pnpm -g
pnpm install
pnpm build
Run gradio cc dev to start demo:
gradio cc dev docs/app.py
Metadata
Release files for modelscope-studio 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modelscope_studio-2.1.0.tar.gz | 26.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelscope_studio-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.8 MB
Release files / modelscope_studio-2.1.0.tar.gz
| Download URL | modelscope_studio-2.1.0.tar.gz |
|---|---|
| Size | 26.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feef6833fed6fd5358c4a01b54a55ac4ec8c941769b2ad66907e583f485e6e10
|
|
BLAKE2b-256 checksum How to use checksums |
16948c4d724650e6172da8fb42ea489254339b0d5e57bafd41b6c5a1c30ac081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / modelscope_studio-2.1.0-py3-none-any.whl
| Download URL | modelscope_studio-2.1.0-py3-none-any.whl |
|---|---|
| Size | 28.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3088cec20bb55aae0f27e926681a27672f3946dccbcabe3319f4aed145c5b3e
|
|
BLAKE2b-256 checksum How to use checksums |
e3cfd58901ea5cbfbb0535caf85889a4581b07abed5445472dd01824fcf2bffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|