A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios.
Project description
ModelScope Studio
✖️
GitHub | 🤖 ModelScope Studio | 🤗 Hugging Face Space
中文 | English | 日本語
modelscope_studio
is a third-party component library based on Gradio, extending more components and usage forms on top of the original Gradio components.
Currently supported UI libraries:
When to Use
Compared to Gradio's own components, 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, modelscope_studio
may not be the best choice, but you can still use modelscope_studio
's layout and display components to help you build pages.
Dependencies
- Gradio >= 4.0
Installation
Currently,
modelscope_studio
version 1.0 is still under development. You can use thebeta
version in advance.
pip install modelscope_studio~=1.0.0b
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():
with antd.ConfigProvider():
antd.DatePicker()
demo.queue().launch()
Documentation and Examples
Migration to 1.0
If you have previously used modelscope_studio
components and want to continue using them in the new version, no modifications to the original components are needed. You just need to introduce ms.Application
in the outer layer.
import gradio as gr
import modelscope_studio.components.base as ms
import modelscope_studio.components.legacy as mgr
with gr.Blocks() as demo:
with ms.Application():
mgr.Chatbot()
demo.launch()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file modelscope_studio-1.0.0b3.tar.gz
.
File metadata
- Download URL: modelscope_studio-1.0.0b3.tar.gz
- Upload date:
- Size: 10.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9775bc9f7c9f7508ec0e42c72904f55b0c80e05dbdbbbc7a95699ddd6d5f1c5 |
|
MD5 | 95be19a52727f3188637288ed6b55a83 |
|
BLAKE2b-256 | 6b46f922958f5f8574bdce296ed164513a542f76624ee8f76f9d208f105f487b |
File details
Details for the file modelscope_studio-1.0.0b3-py3-none-any.whl
.
File metadata
- Download URL: modelscope_studio-1.0.0b3-py3-none-any.whl
- Upload date:
- Size: 11.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 258818adfc78ee03a4af27885fc25244b61ed77c9466897eafa326e59b5910d9 |
|
MD5 | 632be2ad64d5dbb23fcae2ef8777a7d7 |
|
BLAKE2b-256 | 32a930a3a40d618183ebd2066a9cc6fd6e621cebc54a467026cea2285c59d26d |