Skip to content

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

update the startup script

harrye6c5dd4146e8
diff --git a/webui.bat b/webui.bat
index 339cbe02..a927cb3f 100644
--- a/webui.bat
+++ b/webui.bat
@@ -2,4 +2,12 @@
set CURRENT_DIR=%CD%
echo ***** Current directory: %CURRENT_DIR% *****
set PYTHONPATH=%CURRENT_DIR%;%PYTHONPATH%
+
+rem If you could not download the model from the official site, you can use the mirror site.
+rem Just remove the comment of the following line (remove rem).
+rem 如果你无法从官方网站下载模型,你可以使用镜像网站。
+rem 只需要移除下面一行的注释即可(移除 rem)。
+
+rem set HF_ENDPOINT=https://hf-mirror.com
+
streamlit run .\webui\Main.py
\ No newline at end of file
diff --git a/webui.sh b/webui.sh
index 6a2a5543..fcde4711 100644
--- a/webui.sh
+++ b/webui.sh
@@ -1,4 +1,12 @@
CURRENT_DIR=$(pwd)
echo "***** Current directory: $CURRENT_DIR *****"
export PYTHONPATH="${CURRENT_DIR}:$PYTHONPATH"
-streamlit run ./webui/Main.py
\ No newline at end of file
+
+# If you could not download the model from the official site, you can use the mirror site.
+# Just remove the comment of the following line .
+# 如果你无法从官方网站下载模型,你可以使用镜像网站。
+# 只需要移除下面一行的注释即可。
+
+# export HF_ENDPOINT=https://hf-mirror.com
+
+streamlit run ./webui/Main.py --browser.serverAddress="0.0.0.0" --server.enableCORS=True --browser.gatherUsageStats=False
\ No newline at end of file