Skip to content

Commit 9d9b41a

Browse files
committed
docs: update readme
1 parent 8e3441e commit 9d9b41a

4 files changed

Lines changed: 36 additions & 20 deletions

File tree

README-zh_CN.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,22 @@
3333
3434
## 依赖
3535

36-
- Gradio >= 4.43.0
36+
- Gradio >= 6.0.0
37+
38+
> 注意:您的 Gradio 版本必须`<=6.8.0`[为什么?](https://github.com/gradio-app/gradio/issues/13131)
3739
3840
## 安装
3941

4042
```sh
4143
pip install modelscope_studio
4244
```
4345

46+
如果您需要使用`4.43.0 <= Gradio < 6.0.0`,请使用 1.x 版本:
47+
48+
```sh
49+
pip install modelscope_studio~=1.0
50+
```
51+
4452
## 快速开始
4553

4654
```python

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,22 @@ However, when your application needs Gradio to handle more built-in data on the
3333
3434
## Dependencies
3535

36-
- Gradio >= 4.43.0
36+
- Gradio >= 6.0.0
37+
38+
> Note: Your Gradio version must`<=6.8.0`, [why?](https://github.com/gradio-app/gradio/issues/13131)
3739
3840
## Installation
3941

4042
```sh
4143
pip install modelscope_studio
4244
```
4345

46+
If you need to use `4.43.0 <= Gradio < 6.0.0`, please use 1.x version:
47+
48+
```sh
49+
pip install modelscope_studio~=1.0
50+
```
51+
4452
## Quick Start
4553

4654
```python
@@ -61,22 +69,6 @@ demo.queue().launch()
6169
- ModelScope: [中文](https://modelscope.cn/studios/modelscope/modelscope-studio)
6270
- Hugging Face: [English](https://huggingface.co/spaces/modelscope/modelscope-studio)
6371

64-
## Migration to 1.0
65-
66-
If you have used the `modelscope_studio` component before and want to continue using it in the new version, you do not need to make any changes to the original component, just import `ms.Application` in the outer layer.
67-
68-
```python
69-
import gradio as gr
70-
import modelscope_studio.components.base as ms
71-
import modelscope_studio.components.legacy as mgr
72-
73-
with gr.Blocks() as demo:
74-
with ms.Application():
75-
mgr.Chatbot()
76-
77-
demo.launch()
78-
```
79-
8072
## Development
8173

8274
Clone this repo locally:

docs/README-zh_CN.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,22 @@
2727
2828
## 依赖
2929

30-
- Gradio >= 4.43.0
30+
- Gradio >= 6.0.0
31+
32+
> 注意:您的 Gradio 版本必须`<=6.8.0`[为什么?](https://github.com/gradio-app/gradio/issues/13131)
3133
3234
## 安装
3335

3436
```sh
3537
pip install modelscope_studio
3638
```
3739

40+
如果您需要使用`4.43.0 <= Gradio < 6.0.0`,请使用 1.x 版本:
41+
42+
```sh
43+
pip install modelscope_studio~=1.0
44+
```
45+
3846
## 示例
3947

4048
<demo name="example"></demo>

docs/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,22 @@ However, when your application needs Gradio to handle more built-in data on the
4545
4646
## Dependencies
4747

48-
- Gradio >= 4.43.0
48+
- Gradio >= 6.0.0
49+
50+
> Note: Your Gradio version must`<=6.8.0`, [why?](https://github.com/gradio-app/gradio/issues/13131)
4951
5052
## Installation
5153

5254
```sh
5355
pip install modelscope_studio
5456
```
5557

58+
If you need to use `4.43.0 <= Gradio < 6.0.0`, please use 1.x version:
59+
60+
```sh
61+
pip install modelscope_studio~=1.0
62+
```
63+
5664
## Examples
5765

5866
<demo name="example"></demo>

0 commit comments

Comments
 (0)