update the startup script
This commit is contained in:
@@ -2,4 +2,12 @@
|
|||||||
set CURRENT_DIR=%CD%
|
set CURRENT_DIR=%CD%
|
||||||
echo ***** Current directory: %CURRENT_DIR% *****
|
echo ***** Current directory: %CURRENT_DIR% *****
|
||||||
set PYTHONPATH=%CURRENT_DIR%;%PYTHONPATH%
|
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
|
streamlit run .\webui\Main.py
|
||||||
10
webui.sh
10
webui.sh
@@ -1,4 +1,12 @@
|
|||||||
CURRENT_DIR=$(pwd)
|
CURRENT_DIR=$(pwd)
|
||||||
echo "***** Current directory: $CURRENT_DIR *****"
|
echo "***** Current directory: $CURRENT_DIR *****"
|
||||||
export PYTHONPATH="${CURRENT_DIR}:$PYTHONPATH"
|
export PYTHONPATH="${CURRENT_DIR}:$PYTHONPATH"
|
||||||
streamlit run ./webui/Main.py
|
|
||||||
|
# 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
|
||||||
Reference in New Issue
Block a user