利用 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
add the current directory to sys.path
harry30b6f6e13540
diff --git a/webui/Main.py b/webui/Main.pyindex 6a114998..43afe0a4 100644--- a/webui/Main.py+++ b/webui/Main.py@@ -1,7 +1,18 @@+import sys+import os++# 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("")+import jsonimport localeimport streamlit as st-import sys+import osfrom uuid import uuid4import platform@@ -31,7 +42,6 @@ hide_streamlit_style = """st.markdown(hide_streamlit_style, unsafe_allow_html=True)st.title("MoneyPrinterTurbo")-root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))font_dir = os.path.join(root_dir, "resource", "fonts")song_dir = os.path.join(root_dir, "resource", "songs")i18n_dir = os.path.join(root_dir, "webui", "i18n")