update readme

This commit is contained in:
harry 2024-04-01 20:31:18 +08:00
parent 9283787681
commit 56d4b7be04
4 changed files with 31 additions and 6 deletions

View File

@ -8,7 +8,7 @@
<a href="https://github.com/harry0703/MoneyPrinterTurbo/blob/main/LICENSE"><img src="https://img.shields.io/github/license/harry0703/MoneyPrinterTurbo.svg?style=for-the-badge" alt="License"></a>
</p>
English | [简体中文](README.md)
<h3>English | [简体中文](README.md)</h3>
> Thanks to [RootFTW](https://github.com/Root-FTW) for the translation
@ -34,7 +34,8 @@ https://reccloud.com
## Features 🎯
- [x] Complete **MVC architecture**, **clearly structured** code, easy to maintain, supports both API and Web interface
- [x] Complete **MVC architecture**, **clearly structured** code, easy to maintain, supports both `API`
and `Web interface`
- [x] Supports **AI-generated** video copy, as well as **customized copy**
- [x] Supports various **high-definition video** sizes
- [x] Portrait 9:16, `1080x1920`

View File

@ -8,7 +8,7 @@
<a href="https://github.com/harry0703/MoneyPrinterTurbo/blob/main/LICENSE"><img src="https://img.shields.io/github/license/harry0703/MoneyPrinterTurbo.svg?style=for-the-badge" alt="License"></a>
</p>
[English](README-en.md) | 简体中文
<h3>[English](README-en.md) | 简体中文</h3>
只需提供一个视频 **主题****关键词** ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。
@ -29,7 +29,7 @@
## 功能特性 🎯
- [x] 完整的 **MVC架构**,代码 **结构清晰**易于维护支持API和Web界面
- [x] 完整的 **MVC架构**,代码 **结构清晰**,易于维护,支持 `API` `Web界面`
- [x] 支持视频文案 **AI自动生成**,也可以**自定义文案**
- [x] 支持多种 **高清视频** 尺寸
- [x] 竖屏 9:16`1080x1920`
@ -188,7 +188,7 @@ sh webui.sh
python main.py
```
启动后,可以查看 `API文档` http://127.0.0.1:8080/docs 直接在线调试接口,快速体验。
启动后,可以查看 `API文档` http://127.0.0.1:8080/docs 或者 http://127.0.0.1:8080/redoc 直接在线调试接口,快速体验。
效果如下图:
![](docs/api.jpg)

View File

@ -139,6 +139,30 @@ class TaskResponse(BaseResponse):
data: TaskResponseData
class Config:
json_schema_extra = {
"example": {
"status": 200,
"message": "success",
"data": {
"task_id": "6c85c8cc-a77a-42b9-bc30-947815aa0558"
}
},
}
class TaskQueryResponse(BaseResponse):
pass
class Config:
json_schema_extra = {
"example": {
"status": 200,
"message": "success",
"data": {
"state": 1,
"progress": 100,
"videos": [
"http://127.0.0.1:8080/tasks/6c85c8cc-a77a-42b9-bc30-947815aa0558/final-1.mp4"
]
}
},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 252 KiB