Spaces:
Running
Running
Merge pull request #171 from RoderickChan/add-deploy-instruction
Browse files
README.md
CHANGED
@@ -161,20 +161,12 @@ input区域 输入 ./crazy_functions/test_project/python/dqn , 然后点击 "[
|
|
161 |
|
162 |
```
|
163 |
|
164 |
-
##
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
import subprocess
|
171 |
-
cmd_get_ip = 'grep -oP "(\d+\.)+(\d+)" /etc/resolv.conf'
|
172 |
-
ip_proxy = subprocess.run(
|
173 |
-
cmd_get_ip, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, shell=True
|
174 |
-
).stdout.strip() # 获取windows的IP
|
175 |
-
proxies = { "http": ip_proxy + ":51837", "https": ip_proxy + ":51837", } # 请自行修改
|
176 |
-
```
|
177 |
-
在启动main.py后,可以在windows浏览器中访问服务。至此测试、使用与上面其他方法无异。
|
178 |
|
179 |
|
180 |
## 自定义新的便捷按钮(学术快捷键自定义)
|
|
|
161 |
|
162 |
```
|
163 |
|
164 |
+
## 其他部署方式
|
165 |
+
- 使用WSL2(Windows Subsystem for Linux 子系统)
|
166 |
+
请访问[部署wiki-1](https://github.com/binary-husky/chatgpt_academic/wiki/%E4%BD%BF%E7%94%A8WSL2%EF%BC%88Windows-Subsystem-for-Linux-%E5%AD%90%E7%B3%BB%E7%BB%9F%EF%BC%89%E9%83%A8%E7%BD%B2)
|
167 |
+
|
168 |
+
- nginx远程部署
|
169 |
+
请访问[部署wiki-2](https://github.com/binary-husky/chatgpt_academic/wiki/%E8%BF%9C%E7%A8%8B%E9%83%A8%E7%BD%B2%E7%9A%84%E6%8C%87%E5%AF%BC)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
|
172 |
## 自定义新的便捷按钮(学术快捷键自定义)
|