Spaces:
Sleeping
Sleeping
add deploy method for windows
Browse files
README.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1 |
# ChatGPT 学术优化
|
2 |
|
3 |
**如果喜欢这个项目,请给它一个Star**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<div align="center">
|
5 |
<img src="公式.gif" width="700" >
|
6 |
</div>
|
@@ -9,9 +18,22 @@
|
|
9 |
<img src="润色.gif" width="700" >
|
10 |
</div>
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
|
14 |
-
## 使用docker
|
15 |
|
16 |
``` sh
|
17 |
# 下载项目
|
|
|
1 |
# ChatGPT 学术优化
|
2 |
|
3 |
**如果喜欢这个项目,请给它一个Star**
|
4 |
+
|
5 |
+
<div align="center">
|
6 |
+
<img src="demo2.jpg" width="500" >
|
7 |
+
</div>
|
8 |
+
|
9 |
+
<div align="center">
|
10 |
+
<img src="demo.jpg" width="500" >
|
11 |
+
</div>
|
12 |
+
|
13 |
<div align="center">
|
14 |
<img src="公式.gif" width="700" >
|
15 |
</div>
|
|
|
18 |
<img src="润色.gif" width="700" >
|
19 |
</div>
|
20 |
|
21 |
+
## 直接运行 (Windows or Linux)
|
22 |
+
|
23 |
+
```
|
24 |
+
# 下载项目
|
25 |
+
git clone https://github.com/binary-husky/chatgpt_academic.git
|
26 |
+
cd chatgpt_academic
|
27 |
+
# 配置 海外Proxy 和 OpenAI API KEY
|
28 |
+
config.py
|
29 |
+
# 安装依赖
|
30 |
+
python -m pip install -r requirements.txt
|
31 |
+
# 运行
|
32 |
+
python main.py
|
33 |
+
```
|
34 |
|
35 |
|
36 |
+
## 使用docker (Linux)
|
37 |
|
38 |
``` sh
|
39 |
# 下载项目
|
demo.jpg
ADDED
demo2.jpg
ADDED
main.py
CHANGED
@@ -46,9 +46,6 @@ def markdown_convertion(txt):
|
|
46 |
else:
|
47 |
return markdown.markdown(txt,extensions=['fenced_code','tables'])
|
48 |
|
49 |
-
# math_config = {'mdx_math': {'enable_dollar_delimiter': True}}
|
50 |
-
# markdown.markdown(txt, extensions=['fenced_code', 'tables', 'mdx_math'], extension_configs=math_config)
|
51 |
-
|
52 |
|
53 |
def format_io(self,y):
|
54 |
if y is None:
|
|
|
46 |
else:
|
47 |
return markdown.markdown(txt,extensions=['fenced_code','tables'])
|
48 |
|
|
|
|
|
|
|
49 |
|
50 |
def format_io(self,y):
|
51 |
if y is None:
|