sperfu commited on
Commit
0219db5
·
verified ·
1 Parent(s): e395e54

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -24,4 +24,24 @@
24
  ## Usage
25
 
26
 
27
- ##
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ## Usage
25
 
26
 
27
+ ## Web DEMO
28
+
29
+ 安装网页Demo所需依赖
30
+
31
+ ```bash
32
+ pip install streamlit==1.24.0
33
+ ```
34
+
35
+ 下载[GouMang](https://huggingface.co/AI4Bread/GouMang)项目模型(欢迎Star)
36
+
37
+
38
+ 将 `web_demo.py` 中的模型路径更换为下载存放参数的路径 `GouMang`
39
+
40
+ 运行目录下的 `web_demo.py` 文件,输入以下命令后,[**查看本教程5.2配置本地端口后**](https://github.com/InternLM/tutorial/blob/main/helloworld/hello_world.md#52-%E9%85%8D%E7%BD%AE%E6%9C%AC%E5%9C%B0%E7%AB%AF%E5%8F%A3),将端口映射到本地。在本地浏览器输入 `http://127.0.0.1:6006` 即可。
41
+
42
+ ```
43
+ streamlit run /root/personal_assistant/code/InternLM/web_demo.py --server.address 127.0.0.1 --server.port 6006
44
+ ```
45
+
46
+ 注意:要在浏览器打开 `http://127.0.0.1:6006` 页面后,模型才会加载。
47
+ 在加载完模型之后,就可以与 GouMang 进行对话了