Coloring's picture
feat: update
1969c22

A newer version of the Gradio SDK is available: 5.35.0

Upgrade

load

This feature is similar to gr.load. Allow users to Construct a demo from a ModelScope Studio repo.

How to Use

Basic Usage

import modelscope_studio.components.legacy as mgr
demo = mgr.load("modelscope/modelscope-studio")
demo.launch()

With Access Token

Use the access token to load a private ModelScope Studio repo. Find your sdk token here: https://modelscope.cn/my/myaccesstoken.

import modelscope_studio.components.legacy as mgr
demo = mgr.load("modelscope/modelscope-studio", token="YOUR_ACCESS_TOKEN")
demo.launch()

Initialization

Parameter Type Default Value Description
name str None required. the name of the ModelScope Studio repo (e.g. "modelscope/modelscope-studio").
token str None optional access token for loading private ModelScope Studio repo. Find your sdk token here: https://modelscope.cn/my/myaccesstoken.