add deploy method for windows

This commit is contained in:
505030475 2023-03-21 13:35:53 +08:00
parent 6e9813565a
commit da0caab4cf
4 changed files with 23 additions and 4 deletions

View File

@ -1,6 +1,15 @@
# ChatGPT 学术优化
**如果喜欢这个项目请给它一个Star**
<div align="center">
<img src="demo2.jpg" width="500" >
</div>
<div align="center">
<img src="demo.jpg" width="500" >
</div>
<div align="center">
<img src="公式.gif" width="700" >
</div>
@ -9,9 +18,22 @@
<img src="润色.gif" width="700" >
</div>
## 直接运行 (Windows or Linux)
```
# 下载项目
git clone https://github.com/binary-husky/chatgpt_academic.git
cd chatgpt_academic
# 配置 海外Proxy 和 OpenAI API KEY
config.py
# 安装依赖
python -m pip install -r requirements.txt
# 运行
python main.py
```
## 使用docker
## 使用docker (Linux)
``` sh
# 下载项目

BIN
demo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

BIN
demo2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -46,9 +46,6 @@ def markdown_convertion(txt):
else:
return markdown.markdown(txt,extensions=['fenced_code','tables'])
# math_config = {'mdx_math': {'enable_dollar_delimiter': True}}
# markdown.markdown(txt, extensions=['fenced_code', 'tables', 'mdx_math'], extension_configs=math_config)
def format_io(self,y):
if y is None: