diff --git a/requirements.txt b/requirements.txt index d16c9eb..77103b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -29,7 +29,8 @@ pandas scipy requests pillow -numpy<=2.0 +numpy==1.26.4 +# <=2.0.0 gradio==3.44.2 fastapi==0.95.1 uvicorn==0.22.0 diff --git a/run_gui_sourceCN.sh b/run_gui_sourceCN.sh new file mode 100644 index 0000000..3e6712e --- /dev/null +++ b/run_gui_sourceCN.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +# 激活虚拟环境 +source "./venv/bin/activate" + +# 环境变量 +export HF_HOME=huggingface +# 国内hg镜像 +export HF_ENDPOINT=https://hf-mirror.com +export PYTHONUTF8=1 + +python gui.py --listen --tensorboard-port 6006 --port 28000 "$@" + +