diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-25 09:21:18 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-25 09:21:18 +0000 |
commit | c1294d849a50b9b2995aa257adbb918837c4b384 (patch) | |
tree | 0ff50207d555b4c1f86b8ca219c7851bd90402eb /launch.py | |
parent | 501f40d834cef48b3954bd464a098fae6db357f5 (diff) | |
download | stable-diffusion-webui-gfx803-c1294d849a50b9b2995aa257adbb918837c4b384.tar.gz stable-diffusion-webui-gfx803-c1294d849a50b9b2995aa257adbb918837c4b384.tar.bz2 stable-diffusion-webui-gfx803-c1294d849a50b9b2995aa257adbb918837c4b384.zip |
make it possible for user to enable gradio analytics by setting GRADIO_ANALYTICS_ENABLED=True
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,8 @@ index_url = os.environ.get('INDEX_URL', "") stored_commit_hash = None
skip_install = False
-os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
+if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
+ os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
def check_python_version():
is_windows = platform.system() == "Windows"
|