aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorMicky Brunetti <micky2be@users.noreply.github.com>2023-04-04 00:14:20 +0900
committerGitHub <noreply@github.com>2023-04-04 00:14:20 +0900
commitd537a1f1b62de7795a77feb71b4c990389c30087 (patch)
treec0ee7c61d53e983bdd4aa5465bc4aac5cfe90d41 /launch.py
parent22bcc7be428c94e9408f589966c2040187245d81 (diff)
Fix skip-install bug (see #8935)
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/launch.py b/launch.py
index 68e08114..b8f650fc 100644
--- a/launch.py
+++ b/launch.py
@@ -19,7 +19,6 @@ python = sys.executable
git = os.environ.get('GIT', "git")
index_url = os.environ.get('INDEX_URL', "")
stored_commit_hash = None
-skip_install = False
dir_repos = "repositories"
if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
@@ -122,7 +121,7 @@ def run_python(code, desc=None, errdesc=None):
def run_pip(args, desc=None):
- if skip_install:
+ if "--skip-install" in sys.argv:
return
index_url_line = f' --index-url {index_url}' if index_url != '' else ''
@@ -223,8 +222,6 @@ def run_extensions_installers(settings_file):
def prepare_environment():
- global skip_install
-
torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117")
requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")