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.1
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.1.tar.gz | 26.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelscope_studio-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.8 MB
Release files / modelscope_studio-2.1.1.tar.gz
| Download URL | modelscope_studio-2.1.1.tar.gz |
|---|---|
| Size | 26.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50a13442dac046510b0d2386a6377b0e5351176dfef88915cbfc46b4e1383eae
|
|
BLAKE2b-256 checksum How to use checksums |
88fa9b6fa8bf596819a23b0bcedb0fe50f9467f9ae20aa00da55e5b7438aee74
|
| 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.1-py3-none-any.whl
| Download URL | modelscope_studio-2.1.1-py3-none-any.whl |
|---|---|
| Size | 28.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bdc42c7451552912eedd9682f8a99ea93a838d17da550144a91daf03aade966
|
|
BLAKE2b-256 checksum How to use checksums |
b58bba4c9ac7a905ee167f17a4b20eea162614815bf4e73b859643fcb2826e07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|