Skip to content

Commit 72319df

Browse files
author
李茂益
committed
统一提交记录
0 parents  commit 72319df

File tree

98 files changed

+2921
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2921
-0
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# ---> Python
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
env/
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*,cover
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
55+
# Sphinx documentation
56+
docs/_build/
57+
58+
# PyBuilder
59+
target/
60+
61+
.idea/
62+
63+
venv/
64+
65+
*.ppt
66+
67+
*.pptx
68+
69+
picture/
70+
71+
### 绝对删除注释 ,防止暴露秘钥
72+
config1.ini

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 limaoyi1
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Readme.en.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# <p align="center">Auto_PPT: Generate Your PPT Automatically</p>
2+
3+
<p align="center"><i>Tired of spending endless hours creating dull presentations? Wishing for a magical tool that can generate stunning PPTs for you in seconds? Well, fret no more! Introducing Auto_PPT!</i></p>
4+
5+
<p align="center">
6+
<a href="https://github.com/limaoyi1/Auto_PPT/fork" target="blank">
7+
<img src="https://img.shields.io/github/forks/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT forks"/>
8+
</a>
9+
10+
<a href="https://github.com/limaoyi1/Auto_PPT/stargazers" target="blank">
11+
<img src="https://img.shields.io/github/stars/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT stars"/>
12+
</a>
13+
<a href="https://github.com/limaoyi1/Auto_PPT/pulls" target="blank">
14+
<img src="https://img.shields.io/github/issues-pr/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT pull-requests"/>
15+
</a>
16+
<a href='https://github.com/limaoyi1/Auto_PPT/blob/main/LICENSE'>
17+
<img src='https://img.shields.io/github/license/limaoyi1/Auto_PPT?&label=Latest&style=for-the-badge' alt="Auto_PPT LICENSE">
18+
</a>
19+
<a href='https://github.com/limaoyi1/Auto_PPT/releases'>
20+
<img src='https://img.shields.io/github/release/limaoyi1/Auto_PPT?&label=Latest&style=for-the-badge' alt="Auto_PPT releases">
21+
</a>
22+
</p>
23+
24+
25+
[//]: # (https://github.com/ikatyang/emoji-cheat-sheet 表情仓库)
26+
27+
## 🔥 [中文指南](./Readme.md)
28+
29+
> 中文用户请移步 [中文指南](./Readme.md).
30+
31+
## 🎞️ Project Introduction
32+
33+
> Utilizing gpt-3.5-turbo and pptx, Auto_PPT effortlessly generates PPTX files with specified themes. \
34+
> ![img.png](pptx_static/static/img2.png)
35+
> Below is an unmodified example generated by the project:
36+
> ![img.png](pptx_static/static/img.png)
37+
38+
## ⭐ Thanks for Your Support
39+
40+
> By starring the project, you demonstrate your recognition and help us gain more attention in the community. \
41+
> This motivates us to continuously improve and develop new features to enhance your experience with Auto_PPT.
42+
43+
> "Special thanks to [Miraitowa-wsy](https://github.com/Miraitowa-wsy) for their sponsorship."
44+
## 🛸 Free Trial
45+
46+
> New Version Trial Link 🔗: [Trial Link](http://www.limaoyi.top:4399/#)
47+
48+
> 🧭 Get a professionally designed PPT in just 2-3 minutes. The generation time depends on the speed of the OpenAI interface, ensuring efficient and reliable operation.
49+
50+
> 🔗 Try it now, let's explore the magic of Auto_PPT together! Please note that, to maintain limited server traffic, we do not currently provide random image services.
51+
52+
## 🧲 Project Advantages
53+
54+
> 🌟 No more hassle: Simply enter the title, and Auto_PPT will instantly create a brand new PPTX for you without any extra effort!
55+
56+
> 🎩 The magic behind: We leverage the powerful gpt-3.5-turbo-16k interface to ensure stable and impressive PPT outlines with every generation.
57+
58+
> 💡 Creative use of md format: We uniquely utilize the md format in a multi-step chain to generate PPT text, making PPTX creation easier and more stable. Say goodbye to formatting hassles and focus on content creation!
59+
60+
> 🔗 Optimized and refactored using langChain in v1.0: Thanks to langChain, the code becomes simple, easy, and aesthetically pleasing!
61+
62+
> 🖼️ Scenic illustrations: We collaborate with Unsplash to provide the most exquisite illustrations, instantly adding vitality and aesthetics to your PPT.
63+
64+
> 🔒 Secure local deployment: If you're concerned about data security, fret not! Auto_PPT supports local deployment; simply add your OpenAI API key and Unsplash API key information.
65+
66+
## 🎨 Deployment Guide
67+
>The project operation requires a Python environment, and it is recommended to use Python 3 or above. The author uses Python 3.9
68+
>1 Creating a virtual environment
69+
```Bash
70+
python - m venv venv
71+
```
72+
>2 Activate virtual environment
73+
```Bash
74+
. venv/bin/activate
75+
```
76+
>3 Install required Python components
77+
```Bash
78+
pip install - r requirements. txt
79+
```
80+
>4 Add your API key in config.ini
81+
>5 Modify/ The base absolute path of readconfig/mycofig.py makes it the folder path of config.ini
82+
>6 Run Project
83+
>Run
84+
```Bash
85+
python application.py
86+
```
87+
>Alternatively (in production mode), the following commands need to be run in a Linux like environment
88+
```Bash
89+
gunicorn - b 0.0.0.0:5000-- log level=debug -- threads 4 app: application>gunicorn. log 2>&1&
90+
```
91+
>7 Access http://127.0.0.1:5000
92+
93+
## 💡 Next Version
94+
95+
> 2023/7/3 | v0.5.1 | Birth of an idea | Completed ✔️
96+
>
97+
98+
| Blueprint | Existing Issues | Completion |
99+
|----------------------------|-----------------------------|----------------------------|
100+
| Deploy Online Service | UI is too rudimentary | Completed |
101+
| Optimize Generation Format | Format is too monotonous | Adjusted paragraph spacing |
102+
| Optimize Generation Speed | OpenAI API response is slow | Optimized service startup |
103+
104+
> 2023/7/6 | v1.0 | Refactor with langChain | Completed ✔
105+
>
106+
107+
| Blueprint | Existing Issues | Completion |
108+
|---------------------------------------|----------------------------------------------------|------------------------------|
109+
| Optimize Generation Content | Generated content not detailed and accurate enough | Deferred to the next version |
110+
| Optimize Generation Steps | Single step is not enough for a high-quality PPT | Completed on 7/14 |
111+
| Use langChain to optimize the project | Refactor into a chain call | Completed on 7/14 |
112+
113+
> 2023/7/15 | v1.5 | Next version tasks | In progress 🧭
114+
>
115+
| Blueprint | Existing Issues | Completion |
116+
|---------------------------------------------------|----------------------------------------------------------|--------------|
117+
| Support more md formats | Large amount of work for md formats | Just started |
118+
| Refactor front-end code using a specific language | Lack of familiarity with front-end for backend engineers | Completed ✔ |
119+
| Optimize theme effects | Lack of aesthetic ppt template reference | Just started |
120+
121+
## 🌟 Star History
122+
123+
<br>
124+
125+
[![Star History Chart](https://api.star-history.com/svg?repos=limaoyi1/Auto_PPT&type=Timeline)](https://star-history.com/#limaoyi1/Auto_PPT&Timeline)
126+
127+
</br>

Readme.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# <p align="center">Auto_PPT 自动生成你的PPT</p>
2+
3+
<p align="center"><i>你是否厌倦了花费无尽的时间来制作乏味的演示文稿?是否希望有一个魔法工具,能够在几秒钟内为你生成令人惊叹的PPT?别担心,我们为你带来了Auto_PPT!</i></p>
4+
5+
<p align="center">
6+
<a href="https://github.com/limaoyi1/Auto_PPT/fork" target="blank">
7+
<img src="https://img.shields.io/github/forks/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT forks"/>
8+
</a>
9+
10+
<a href="https://github.com/limaoyi1/Auto_PPT/stargazers" target="blank">
11+
<img src="https://img.shields.io/github/stars/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT stars"/>
12+
</a>
13+
<a href="https://github.com/limaoyi1/Auto_PPT/pulls" target="blank">
14+
<img src="https://img.shields.io/github/issues-pr/limaoyi1/Auto_PPT?style=for-the-badge" alt="Auto_PPT pull-requests"/>
15+
</a>
16+
<a href='https://github.com/limaoyi1/Auto_PPT/blob/main/LICENSE'>
17+
<img src='https://img.shields.io/github/license/limaoyi1/Auto_PPT?&label=Latest&style=for-the-badge' alt="Auto_PPT LICENSE">
18+
</a>
19+
<a href='https://github.com/limaoyi1/Auto_PPT/releases'>
20+
<img src='https://img.shields.io/github/release/limaoyi1/Auto_PPT?&label=Latest&style=for-the-badge' alt="Auto_PPT releases">
21+
</a>
22+
</p>
23+
24+
25+
[//]: # (https://github.com/ikatyang/emoji-cheat-sheet 表情仓库)
26+
27+
## 🔥 [English Guide](./Readme.en.md)
28+
29+
> please visit [English Guide](./Readme.en.md)
30+
31+
## 🎞️ 项目介绍
32+
33+
> 使用 gpt-3.5-turbo 和 pptx 一站式生成指定主题的PPTX文件。 \
34+
> ![img.png](pptx_static/static/img2.png)
35+
> 以下是通过项目生成的原始示例:
36+
> ![img.png](pptx_static/static/img.png)
37+
38+
## ⭐ 感谢支持
39+
40+
> 通过给项目点亮星星,您展示了对我们的认可,并帮助我们在社区中获得更多关注。\
41+
> 这激励我们不断改进和开发新功能,以提升您使用 Auto_PPT 的体验。
42+
43+
> 鸣谢 [Miraitowa-wsy](https://github.com/Miraitowa-wsy) 老板的赞助.
44+
45+
## 🛸 免费试用
46+
47+
> 新版 试用网址 🔗 : [试用网址](http://www.limaoyi.top:4399/#)
48+
49+
> 🧭 只需2~3分钟,即可拥有一份专业设计的PPT。生成时间取决于 OpenAI 接口的速度,确保高效和可靠的操作。
50+
51+
> 🔗 立即试用,让我们一同探索 Auto_PPT 的神奇之处!请注意,为了维护有限的服务器流量,我们暂不提供随机图片服务。
52+
53+
## 🧲 项目优势
54+
55+
> 🌟 不再费心思:只需输入标题,Auto_PPT将立即为你创造一份全新的PPTX,无需任何额外努力!
56+
57+
> 🎩 魔法背后的秘密:我们借助强大的gpt-3.5-turbo-16k接口,确保每次生成的PPT大纲都稳定而令人印象深刻。
58+
59+
> 💡 创造性使用md格式:我们独特地运用md格式多步链式地生成PPT文本,使PPTX制作变得更加容易和稳定。告别格式困扰,让你专注于内容的创作!
60+
61+
> 🔗 在v1.0使用langchain对程序进行优化和重构,感谢langchain可以让代码变得简单,轻松和美观!
62+
63+
> 🖼️ 风景图插图:我们与Unsplash合作,提供最精美的插图,让你的PPT瞬间焕发生机与美感。
64+
65+
> 🔒 安全本地部署:如果你担心数据安全问题,不用担心!Auto_PPT支持本地部署,只需添加你的OpenAI API密钥和Unsplash API密钥信息即可。
66+
67+
## 🎨 部署指南
68+
69+
> 项目运行需要python环境 ,推荐python3以上,作者使用的是python3.9
70+
71+
> 1. 创建虚拟环境
72+
73+
```bash
74+
python -m venv venv
75+
```
76+
77+
> 2. 激活虚拟环境
78+
79+
```bash
80+
. venv/bin/activate
81+
```
82+
83+
> 3. 安装要求的python组件
84+
85+
```bash
86+
pip install -r requirements.txt
87+
```
88+
89+
> 4. 在 config.ini 添加你的api key
90+
91+
> 5. 修改./readconfig/mycofig.py 的base 绝对路径 使其为config.ini的文件夹路径
92+
93+
> 6. 运行项目
94+
95+
> 运行
96+
```bash
97+
python application.py
98+
```
99+
100+
> 或者 (生产模式) 需要在 类linux 环境运行以下命令
101+
102+
```bash
103+
gunicorn -b 0.0.0.0:5000 --log-level=debug --threads 4 app:application > gunicorn.log 2>&1 &
104+
```
105+
106+
> 7. 访问 http://127.0.0.1:5000
107+
108+
## 💡 下一个版本
109+
110+
> 2023/7/3 | v0.5.1 | 一个创意的诞生 | 已经完成 ✔️
111+
>
112+
113+
| 蓝图 | 存在问题 | 完成情况 |
114+
|--------|---------------|------------|
115+
| 部署线上服务 | ui过于简陋 | 已完成 |
116+
| 优化生成格式 | 格式过于单一 | 已经优化段落间距 |
117+
| 优化生成速度 | openaiapi接口太慢 | 已经优化服务启动方式 |
118+
119+
> 2023/7/6 | v1.0 | 用langChain 重构代码 | 已经完成 ✔
120+
>
121+
122+
| 蓝图 | 存在问题 | 完成情况 |
123+
|-----------------|--------------------|----------|
124+
| 优化生成内容 | 生成内容不够详细和准确 | 推迟到下一个版本 |
125+
| 优化生成步骤 | 单一步骤难以一步完成一个优质的PPT | 7.14已完成 |
126+
| 使用langChain优化项目 | 优化为链式调用 | 7.14已完成 |
127+
128+
129+
> 2023/7/15 | v1.5 | 下一个版本需要完成的内容 | 开始 🧭
130+
>
131+
| 蓝图 | 存在问题 | 完成情况 |
132+
|----------------|----------------|--------|
133+
| 兼容更多md格式 | md的格式工作量很大 | 刚开始 |
134+
| 选用一种前端语言重构前端代码 | 作为后端工程师对前端的不熟悉 | 已经完成 ✔ |
135+
| 优化主题的效果 | 没有美感的ppt模板参考 | 刚开始 |
136+
137+
## 🌟 Star History
138+
139+
<br>
140+
141+
[![Star History Chart](https://api.star-history.com/svg?repos=limaoyi1/Auto_PPT&type=Timeline)](https://star-history.com/#limaoyi1/Auto_PPT&Timeline)
142+
143+
</br>

__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)