Skip to content

Commit

Permalink
fix launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ddPn08 committed Jul 17, 2023
1 parent 033970e commit 28108ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def prepare_environment():

torch_command = os.environ.get(
"TORCH_COMMAND",
"pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118",
"pip install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118",
)

sys.argv, skip_install = extract_arg(sys.argv, "--skip-install")
Expand All @@ -106,10 +106,10 @@ def prepare_environment():
sys.argv, reinstall_torch = extract_arg(sys.argv, "--reinstall-torch")
ngrok = "--ngrok" in sys.argv

if reinstall_torch or not is_installed("torch") or not is_installed("torchvision"):
if reinstall_torch or not is_installed("torch") or not is_installed("torchaudio"):
run(
f'"{python}" -m {torch_command}',
"Installing torch and torchvision",
"Installing torch and torchaudio",
"Couldn't install torch",
)

Expand Down

0 comments on commit 28108ec

Please sign in to comment.