toto10's picture
c5e5aafbd355d40c9a6098a76e091f0ce9686827f74aacd3a679fc72967ac606
395def2
raw
history blame
448 Bytes
#!/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
python3 -m venv server_env
source ./server_env/bin/activate
python3 -m pip install -r requirements.txt
else
source ./server_env/bin/activate
fi
cd ./server/python_server
python3 -m uvicorn serverMain:app --reload