Skip to content

Commit a16b42d

Browse files
committed
Visual
1 parent be2f268 commit a16b42d

File tree

2 files changed

+4
-6
lines changed
  • docs/tools
  • i18n/zh/docusaurus-plugin-content-docs/current/tools

2 files changed

+4
-6
lines changed

docs/tools/vis.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We provide a simple web-based visualization feature for configuration files.
99
## Environment Setup
1010

1111
```bash
12-
pip install gradio
12+
pip install gradio pyvis
1313
```
1414

1515
## Usage {#parameter}
@@ -18,9 +18,8 @@ pip install gradio
1818
```python
1919
import torchpipe as tp
2020

21-
a=tp.parse_toml("examples/ppocr/ocr.toml")
2221

23-
tp.utils.Visual(a).launch()
22+
tp.utils.Visual("examples/ppocr/ocr.toml").launch()
2423
```
2524

2625

i18n/zh/docusaurus-plugin-content-docs/current/tools/vis.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type: explainer
1010
## 环境准备
1111
```bash
1212

13-
pip install gradio
13+
pip install gradio pyvis
1414
```
1515

1616
## 使用方法 {#parameter}
@@ -19,7 +19,6 @@ pip install gradio
1919
```python
2020
import torchpipe as tp
2121

22-
a=tp.parse_toml("examples/ppocr/ocr.toml")
2322

24-
tp.utils.Visual(a).launch()
23+
tp.utils.Visual("examples/ppocr/ocr.toml").launch()
2524
```

0 commit comments

Comments
 (0)