Auto-Photoshop-StableDiffus.../start_server.sh

18 lines
445 B
Bash

#!/bin/bash
git pull
# Set the desired remote host where the "<>" is
export SD_URL=http://127.0.0.1:7860
# 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