Coloring's picture
feat: add mgr.load
f3f2a15
|
raw
history blame
No virus
1.32 kB

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 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 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.