Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

update README.md

harry692e76dc9a4a
diff --git a/README.md b/README.md
index 69ae2861..55cf9104 100644
--- a/README.md
+++ b/README.md
@@ -54,20 +54,34 @@ cd MoneyPrinterTurbo
conda create -n MoneyPrinterTurbo python=3.10
conda activate MoneyPrinterTurbo
pip install -r requirements.txt
-
-cp config.example.toml config.toml
```
-需要先配置 `config.toml` 中的参数
-
## 快速使用 🚀
完整的使用演示视频,可以查看:https://v.douyin.com/iFhnwsKY/
-请先确认你按照 `config.toml` 文件中的说明,配置好了 `openai_api_key` 和 `pexels_api_keys`。否则项目无法正常运行。
+### 前提
+
+1. 将 `config.example.toml` 文件重命名为 `config.toml`
+2. 按照 `config.toml` 文件中的说明,配置好 `openai_api_key` 和 `pexels_api_keys`
+3. 安装好 ImageMagick
+ - Windows:
+ - 下载 https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-29-Q16-x64-static.exe 并按照(不要修改安装路径)
+ - 修改配置文件 `config.toml` 中的 `imagemagick_path` 为你的实际安装路径
+ - MacOS: `brew install imagemagick`
### 启动Web界面
+注意需要到 MoneyPrinterTurbo 项目 `根目录` 下执行以下命令
+
+#### Windows
+
+```bat
+webui.bat
+```
+
+#### MacOS or Linux
+
```shell
sh webui.sh
```
diff --git a/main.py b/main.py
index 438381de..b7b8ab58 100644
--- a/main.py
+++ b/main.py
@@ -2,8 +2,6 @@ import uvicorn
from loguru import logger
from app.config import config
-import __init__ # noqa
-
if __name__ == '__main__':
logger.info("start server, docs: http://127.0.0.1:" + str(config.listen_port) + "/docs")
uvicorn.run(app="app.asgi:app", host=config.listen_host, port=config.listen_port, reload=config.reload_debug,