利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
if config.toml doesn't exist, copy the example config
harry50ee56b1582a
diff --git a/app/config/config.py b/app/config/config.pyindex f4866ed5..14322bd0 100644--- a/app/config/config.py+++ b/app/config/config.py@@ -5,6 +5,13 @@ from loguru import loggerroot_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))config_file = f"{root_dir}/config.toml"+if not os.path.isfile(config_file):+ example_file = f"{root_dir}/config.example.toml"+ if os.path.isfile(example_file):+ import shutil+ shutil.copyfile(example_file, config_file)+ logger.info(f"copy config.example.toml to config.toml")+logger.info(f"load config from file: {config_file}")with open(config_file, mode="rb") as fp: