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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modelscope_studio-2.1.2.tar.gz | 21.7 MB | Without provenance | Details for modelscope_studio-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modelscope_studio-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for modelscope_studio-2.1.2-py3-none-any.whl |
Total release size: 45.1 MB
Release files / modelscope_studio-2.1.2.tar.gz
| Download URL | modelscope_studio-2.1.2.tar.gz |
|---|---|
| Size | 21.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5208ed1eda601e81f8df147cbaa5d2f0ad95f569a4ee2a98962f022ab2b7a9a
|
|
BLAKE2b-256 checksum How to use checksums |
9d0f85a91a9f0c766a2dd8e455cd42d8c1e5732ad185fa5217c57f6f88c79282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / modelscope_studio-2.1.2-py3-none-any.whl
| Download URL | modelscope_studio-2.1.2-py3-none-any.whl |
|---|---|
| Size | 23.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
180a0beb83bb773b1b9401e585c7084b7d02ab8bb71cc486af76c82321ff56d0
|
|
BLAKE2b-256 checksum How to use checksums |
c4403bde7f3a8bfcd18f3ce39d0fdf9ed2e59adfa0111a08d9f2e1eb5cb39bcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for modelscope-studio 2.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.