Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
add node, enhance update script
Browse files Browse the repository at this point in the history
  • Loading branch information
rsxdalv committed Jul 9, 2023
1 parent 995d20d commit 4093188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion graudio
Submodule graudio deleted from b49f52
11 changes: 8 additions & 3 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -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()
Expand Down

0 comments on commit 4093188

Please sign in to comment.