1 Star 0 Fork 0

王云朋/Auto-Photoshop-StableDiffusion-Plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deprecated-do-not-use-start_server.sh 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
Abdullah Alfaraj 提交于 2023-06-28 18:32 . deprecate the proxy server files
#!/bin/bash
git pull
# Set the desired remote host where the "<>" is
export SD_URL=http://127.0.0.1:7860
# Check python was installed
if ! hash python; then
echo "Python is not installed"
exit 1
fi
# Check the default python version
orig_ver=$(python -V 2>&1)
major_version=$(echo "$orig_ver" | sed 's/[^0-9]*\([0-9]*\)\..*/\1/')
minor_subversion=$(echo "$orig_ver" | sed -E 's/^[^.]*\.([^.]*).*$/\1/')
if [[ "$major_version" -ge "3" ]] && [[ "$minor_subversion" -ge "7" ]] # Because of uvicorn==0.20.0 in requirements
then
echo "You have valid version of $orig_ver"
else
echo "Your version $orig_ver not valid, should be >=3.7"
exit 1
fi
# Check if the desired environment exists
if [ ! -d "server_env" ]; then
# Create the environment if it doesn't exist
python -m venv server_env
source ./server_env/bin/activate
python -m pip install -r requirements.txt
else
source ./server_env/bin/activate
fi
cd ./server/python_server
python -m uvicorn serverMain:app --reload
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wentijieda/Auto-Photoshop-StableDiffusion-Plugin.git
[email protected]:wentijieda/Auto-Photoshop-StableDiffusion-Plugin.git
wentijieda
Auto-Photoshop-StableDiffusion-Plugin
Auto-Photoshop-StableDiffusion-Plugin
master

搜索帮助