Skip to content

Commit

Permalink
Visual
Browse files Browse the repository at this point in the history
  • Loading branch information
tp-nan committed Jan 12, 2024
1 parent be2f268 commit a16b42d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/tools/vis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ We provide a simple web-based visualization feature for configuration files.
## Environment Setup

```bash
pip install gradio
pip install gradio pyvis
```

## Usage {#parameter}
Expand All @@ -18,9 +18,8 @@ pip install gradio
```python
import torchpipe as tp

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

tp.utils.Visual(a).launch()
tp.utils.Visual("examples/ppocr/ocr.toml").launch()
```


Expand Down
5 changes: 2 additions & 3 deletions i18n/zh/docusaurus-plugin-content-docs/current/tools/vis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type: explainer
## 环境准备
```bash

pip install gradio
pip install gradio pyvis
```

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

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

tp.utils.Visual(a).launch()
tp.utils.Visual("examples/ppocr/ocr.toml").launch()
```

0 comments on commit a16b42d

Please sign in to comment.