diff --git a/webui.bat b/webui.bat index 339cbe0..a927cb3 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 6a2a554..fcde471 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