Skip to content

Commit

Permalink
Update web demo instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
duzx16 committed Jul 12, 2023
1 parent 7610833 commit 0ba4f56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/THUDM/chatglm2-6b

### 网页版 Demo

![web-demo](resources/web-demo.gif)
![web-demo](resources/web-demo2.gif)

可以通过以下命令启动基于 Streamlit 的网页版 demo:
```shell
Expand All @@ -204,6 +204,9 @@ streamlit run web_demo2.py
```shell
python web_demo.py
```
运行效果如下:
![web-demo](resources/web-demo.gif)

经测试,如果输入的 prompt 较长的话,使用基于 Streamlit 的网页版 Demo 会更流畅。

### 命令行 Demo
Expand Down
Binary file modified resources/web-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/web-demo.png
Binary file not shown.

0 comments on commit 0ba4f56

Please sign in to comment.