Skip to content

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

update example configuration and library

harry2eb6d4b5cc6d
diff --git a/config.example.toml b/config.example.toml
index 0348782e..173bca05 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -34,7 +34,7 @@ listen_port = 8502
# No need to set it unless you want to use your own proxy
openai_base_url = ""
# Check your available models at https://platform.openai.com/account/limits
- openai_model_name = "gpt-4-turbo-preview"
+ openai_model_name = "gpt-4-turbo"
########## Moonshot API Key
# Visit https://platform.moonshot.cn/console/api-keys to get your API key.
@@ -51,7 +51,7 @@ listen_port = 8502
########## G4F
# Visit https://github.com/xtekky/gpt4free to get more details
# Supported model list: https://github.com/xtekky/gpt4free/blob/main/g4f/models.py
- g4f_model_name = "gpt-3.5-turbo-16k-0613"
+ g4f_model_name = "gpt-3.5-turbo"
########## Azure API Key
# Visit https://learn.microsoft.com/zh-cn/azure/ai-services/openai/ to get more details
diff --git a/requirements.txt b/requirements.txt
index a1ad1ff5..1db4a258 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,16 +10,16 @@ streamlit~=1.33.0
loguru~=0.7.2
aiohttp~=3.9.3
urllib3~=2.2.1
-pillow~=9.5.0
+pillow~=10.3.0
pydantic~=2.6.3
-g4f~=0.2.5.4
+g4f~=0.3.0.4
dashscope~=1.15.0
google.generativeai~=0.4.1
python-multipart~=0.0.9
redis==5.0.3
# if you use pillow~=10.3.0, you will get "PIL.Image' has no attribute 'ANTIALIAS'" error when resize video
# please install opencv-python to fix "PIL.Image' has no attribute 'ANTIALIAS'" error
-opencv-python
+opencv-python~=4.9.0.80
# for azure speech
# https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/9-more-realistic-ai-voices-for-conversations-now-generally/ba-p/4099471
azure-cognitiveservices-speech~=1.37.0