Skip to content

Commit feb96ca

Browse files
committed
docs: add wiki link to README
1 parent ce62f00 commit feb96ca

4 files changed

Lines changed: 6 additions & 46 deletions

File tree

README-zh_CN.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,9 @@ demo.queue().launch()
6969
- ModelScope: [中文](https://modelscope.cn/studios/modelscope/modelscope-studio)
7070
- Hugging Face: [English](https://huggingface.co/spaces/modelscope/modelscope-studio)
7171

72-
## 迁移到 1.0
72+
## Wiki
7373

74-
如果您在之前使用了`modelscope_studio`的组件,并且想要在新版本中继续使用。不需要对原有组件做任何修改,只需要在外层引入`ms.Application`即可。
75-
76-
```python
77-
import gradio as gr
78-
import modelscope_studio.components.base as ms
79-
import modelscope_studio.components.legacy as mgr
80-
81-
with gr.Blocks() as demo:
82-
with ms.Application():
83-
mgr.Chatbot()
84-
85-
demo.launch()
86-
```
74+
[链接](./.wiki/zh)
8775

8876
## 开发
8977

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ demo.queue().launch()
6969
- ModelScope: [中文](https://modelscope.cn/studios/modelscope/modelscope-studio)
7070
- Hugging Face: [English](https://huggingface.co/spaces/modelscope/modelscope-studio)
7171

72+
## Wiki
73+
74+
[Link](./.wiki/en)
75+
7276
## Development
7377

7478
Clone this repo locally:

docs/README-zh_CN.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,3 @@ pip install modelscope_studio~=1.0
4646
## 示例
4747

4848
<demo name="example"></demo>
49-
50-
## 迁移到 1.0
51-
52-
如果您在之前使用了`modelscope_studio`的组件,并且想要在新版本中继续使用。不需要对原有组件做任何修改,只需要在外层引入`ms.Application`即可。
53-
54-
```python
55-
import gradio as gr
56-
import modelscope_studio.components.base as ms
57-
import modelscope_studio.components.legacy as mgr
58-
59-
with gr.Blocks() as demo:
60-
with ms.Application():
61-
mgr.Chatbot()
62-
63-
demo.launch()
64-
```

docs/README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,3 @@ pip install modelscope_studio~=1.0
6464
## Examples
6565

6666
<demo name="example"></demo>
67-
68-
## Migration to 1.0
69-
70-
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.
71-
72-
```python
73-
import gradio as gr
74-
import modelscope_studio.components.base as ms
75-
import modelscope_studio.components.legacy as mgr
76-
77-
with gr.Blocks() as demo:
78-
with ms.Application():
79-
mgr.Chatbot()
80-
81-
demo.launch()
82-
```

0 commit comments

Comments
 (0)