Update README.md
Browse files
README.md
CHANGED
@@ -96,18 +96,6 @@ for response, history in model.stream_chat(tokenizer, "Hello", history=[]):
|
|
96 |
length = len(response)
|
97 |
```
|
98 |
|
99 |
-
### Dialogue
|
100 |
-
|
101 |
-
You can interact with the InternLM Chat 7B model through a frontend interface by running the following code:
|
102 |
-
```bash
|
103 |
-
pip install streamlit==1.24.0
|
104 |
-
pip install transformers==4.30.2
|
105 |
-
streamlit run web_demo.py
|
106 |
-
```
|
107 |
-
The effect is as follows
|
108 |
-
|
109 |
-
![demo](https://github.com/InternLM/InternLM/assets/9102141/11b60ee0-47e4-42c0-8278-3051b2f17fe4)
|
110 |
-
|
111 |
## Open Source License
|
112 |
|
113 |
The code is licensed under Apache-2.0, while model weights are fully open for academic research and also allow **free** commercial usage. To apply for a commercial license, please fill in the [application form (English)](https://wj.qq.com/s2/12727483/5dba/)/[申请表(中文)](https://wj.qq.com/s2/12725412/f7c1/). For other questions or collaborations, please contact <[email protected]>.
|
@@ -179,17 +167,6 @@ for response, history in model.stream_chat(tokenizer, "你好", history=[]):
|
|
179 |
length = len(response)
|
180 |
```
|
181 |
|
182 |
-
### 通过前端网页对话
|
183 |
-
可以通过以下代码启动一个前端的界面来与 InternLM Chat 7B 模型进行交互
|
184 |
-
```bash
|
185 |
-
pip install streamlit==1.24.0
|
186 |
-
pip install transformers==4.30.2
|
187 |
-
streamlit run web_demo.py
|
188 |
-
```
|
189 |
-
效果如下
|
190 |
-
|
191 |
-
![效果](https://github.com/InternLM/InternLM/assets/9102141/11b60ee0-47e4-42c0-8278-3051b2f17fe4)
|
192 |
-
|
193 |
## 开源许可证
|
194 |
|
195 |
本仓库的代码依照 Apache-2.0 协议开源。模型权重对学术研究完全开放,也可申请免费的商业使用授权([申请表](https://wj.qq.com/s2/12725412/f7c1/))。其他问题与合作请联系 <[email protected]>。
|
|
|
96 |
length = len(response)
|
97 |
```
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
## Open Source License
|
100 |
|
101 |
The code is licensed under Apache-2.0, while model weights are fully open for academic research and also allow **free** commercial usage. To apply for a commercial license, please fill in the [application form (English)](https://wj.qq.com/s2/12727483/5dba/)/[申请表(中文)](https://wj.qq.com/s2/12725412/f7c1/). For other questions or collaborations, please contact <[email protected]>.
|
|
|
167 |
length = len(response)
|
168 |
```
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
## 开源许可证
|
171 |
|
172 |
本仓库的代码依照 Apache-2.0 协议开源。模型权重对学术研究完全开放,也可申请免费的商业使用授权([申请表](https://wj.qq.com/s2/12725412/f7c1/))。其他问题与合作请联系 <[email protected]>。
|