add update function to xtts and background remover
This commit is contained in:
parent
5b8cd23b85
commit
5bfd325be8
@ -4,7 +4,11 @@ python_exec="$(pwd)/venv/bin/python3.10"
|
||||
|
||||
# Function to install StableDiffusion
|
||||
install_background_remover() {
|
||||
# As no data is stored in the webui folder, we can re-run the installation process for updates
|
||||
rm -R webui -f
|
||||
|
||||
echo "Cloning webui..."
|
||||
# original repo (hf): https://huggingface.co/spaces/ECCV2022/dis-background-removal/tree/main
|
||||
git clone ssh://git@git.broillet.ch:222/Clone/dis-background-removal.git webui
|
||||
|
||||
echo "Installing requirements..."
|
||||
|
@ -2,10 +2,15 @@
|
||||
source ../utils.sh
|
||||
python_exec=venv/bin/python3.10
|
||||
|
||||
# Function to install StableDiffusion
|
||||
# Function to install/update StableDiffusion
|
||||
install_xtts() {
|
||||
if [ -d "webui" ]; then
|
||||
echo "XTTS repository already exists. Skipping clone."
|
||||
yes_or_no "Do you want to update XTTS WebUI ?" && {
|
||||
cd webui
|
||||
git pull
|
||||
echo "XTTS WebUI successfully updated."
|
||||
}
|
||||
else
|
||||
echo "Cloning XTTS repository..."
|
||||
git clone https://github.com/daswer123/xtts-webui webui
|
||||
@ -32,7 +37,7 @@ main() {
|
||||
|
||||
clean
|
||||
|
||||
echo "XTTS installation complete."
|
||||
echo "XTTS installation/update complete."
|
||||
}
|
||||
|
||||
# Run main function
|
||||
|
Loading…
Reference in New Issue
Block a user