利用 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
fix: ModuleNotFoundError: No module named 'app'
harryc9bd480514b6
diff --git a/webui/Main.py b/webui/Main.pyindex 9338bce4..b94e8ecd 100644--- a/webui/Main.py+++ b/webui/Main.py@@ -6,6 +6,14 @@ from uuid import uuid4import streamlit as stfrom loguru import logger+# Add the root directory of the project to the system path to allow importing modules from the project+root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))+if root_dir not in sys.path:+ sys.path.append(root_dir)+ print("******** sys.path ********")+ print(sys.path)+ print("")+from app.config import configfrom app.models.const import FILE_TYPE_IMAGES, FILE_TYPE_VIDEOSfrom app.models.schema import (@@ -19,14 +27,6 @@ from app.services import llm, voicefrom app.services import task as tmfrom app.utils import utils-# Add the root directory of the project to the system path to allow importing modules from the project-root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))-if root_dir not in sys.path:- sys.path.append(root_dir)- print("******** sys.path ********")- print(sys.path)- print("")-st.set_page_config(page_title="MoneyPrinterTurbo",page_icon="🤖",