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.0.0
Note: Your Gradio version must
<=6.8.0, why?
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
Release files for modelscope-studio 2.0.3
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.0.3.tar.gz | 25.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelscope_studio-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.9 MB
Release files / modelscope_studio-2.0.3.tar.gz
| Download URL | modelscope_studio-2.0.3.tar.gz |
|---|---|
| Size | 25.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e32d6bfb15cb1c938ec8d874f868af49c811c91949952a8ba58a7c1ce38d4e1
|
|
BLAKE2b-256 checksum How to use checksums |
3e8c1c33ab7555c32f3765e7e32ef22c9cfd8ecd470d5c15a8c67557a973008e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / modelscope_studio-2.0.3-py3-none-any.whl
| Download URL | modelscope_studio-2.0.3-py3-none-any.whl |
|---|---|
| Size | 26.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04b9accb5568b99e0dd5b893844db87ef94410c37858ca791d47b691488c40a6
|
|
BLAKE2b-256 checksum How to use checksums |
b98ef8c60153acc78a21d3d57c1f46b2bf0695dc3e572cb9042e866640305f6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|