Spaces:
Sleeping
Sleeping
Chuan Hu commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,11 +15,11 @@ GUI for ChatGPT API
|
|
| 15 |
|
| 16 |
## 安装方式
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
<img width="552" alt="SCR-20230302-sula" src="https://user-images.githubusercontent.com/51039745/222445258-248f2789-81d2-4f0a-8697-c720f588d8de.png">
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
```
|
| 25 |
pip install -r requirements.txt
|
|
@@ -35,7 +35,7 @@ pip3 install -r requirements.txt
|
|
| 35 |
|
| 36 |
如果下载慢,建议[配置清华源](https://mirrors.tuna.tsinghua.edu.cn/help/pypi/),或者科学上网。
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
```
|
| 41 |
python ChuanhuChatbot.py
|
|
@@ -51,17 +51,17 @@ python3 ChuanhuChatbot.py
|
|
| 51 |
|
| 52 |
## 或者,使用Docker 安装与运行
|
| 53 |
|
| 54 |
-
构建镜像
|
| 55 |
```
|
| 56 |
docker build -t chuanhuchatgpt:latest .
|
| 57 |
```
|
| 58 |
|
| 59 |
-
一键运行
|
| 60 |
```
|
| 61 |
docker run -d --name chatgpt -e my_api_key="替换成API" --network host chuanhuchatgpt:latest
|
| 62 |
```
|
| 63 |
|
| 64 |
-
查看本地访问地址
|
| 65 |
```
|
| 66 |
docker logs chatgpt
|
| 67 |
```
|
|
|
|
| 15 |
|
| 16 |
## 安装方式
|
| 17 |
|
| 18 |
+
### 填入你的 OpenAI API 密钥
|
| 19 |
|
| 20 |
<img width="552" alt="SCR-20230302-sula" src="https://user-images.githubusercontent.com/51039745/222445258-248f2789-81d2-4f0a-8697-c720f588d8de.png">
|
| 21 |
|
| 22 |
+
### 安装依赖
|
| 23 |
|
| 24 |
```
|
| 25 |
pip install -r requirements.txt
|
|
|
|
| 35 |
|
| 36 |
如果下载慢,建议[配置清华源](https://mirrors.tuna.tsinghua.edu.cn/help/pypi/),或者科学上网。
|
| 37 |
|
| 38 |
+
### 启动
|
| 39 |
|
| 40 |
```
|
| 41 |
python ChuanhuChatbot.py
|
|
|
|
| 51 |
|
| 52 |
## 或者,使用Docker 安装与运行
|
| 53 |
|
| 54 |
+
### 构建镜像
|
| 55 |
```
|
| 56 |
docker build -t chuanhuchatgpt:latest .
|
| 57 |
```
|
| 58 |
|
| 59 |
+
### 一键运行
|
| 60 |
```
|
| 61 |
docker run -d --name chatgpt -e my_api_key="替换成API" --network host chuanhuchatgpt:latest
|
| 62 |
```
|
| 63 |
|
| 64 |
+
### 查看本地访问地址
|
| 65 |
```
|
| 66 |
docker logs chatgpt
|
| 67 |
```
|