From 4093188eb57cb00a784347a2f5a4f5a30d83b872 Mon Sep 17 00:00:00 2001 From: Roberts Slisans Date: Sun, 9 Jul 2023 17:54:28 +0300 Subject: [PATCH] add node, enhance update script --- graudio | 1 - webui.py | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) delete mode 160000 graudio diff --git a/graudio b/graudio deleted file mode 160000 index b49f522..0000000 --- a/graudio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b49f522b7f26c0ced9c328ae2e453080b15ae444 diff --git a/webui.py b/webui.py index a84e28d..09384f2 100644 --- a/webui.py +++ b/webui.py @@ -53,23 +53,27 @@ def install_dependencies(): # Clone webui to our computer run_cmd("conda install -y -c pytorch ffmpeg") # LGPL + run_cmd("conda install -y -c conda-forge nodejs=18.16.1") run_cmd("git clone https://github.com/rsxdalv/tts-generation-webui.git") # Install the webui dependencies update_dependencies() +def update_conda(): + # Update conda + run_cmd("conda update -y -n base -c defaults conda") def update_dependencies(): # Update the webui dependencies os.chdir("tts-generation-webui") run_cmd("git pull") run_cmd("pip install -r requirements.txt") + run_cmd("python update.py") os.chdir(script_dir) - # For tortoise tts + # For tortoise tts, rvc # run_cmd("conda install -y --channel=numba llvmlite") - def run_model(): os.chdir("tts-generation-webui") run_cmd("python server.py") # put your flags here! @@ -78,7 +82,8 @@ def run_model(): if __name__ == "__main__": # Verifies we are in a conda environment check_env() - + # update_conda() + parser = argparse.ArgumentParser() parser.add_argument("--update", action="store_true", help="Update the web UI.") args = parser.parse_args()