From c1294d849a50b9b2995aa257adbb918837c4b384 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 25 Mar 2023 12:21:18 +0300 Subject: [PATCH] make it possible for user to enable gradio analytics by setting GRADIO_ANALYTICS_ENABLED=True --- launch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 0397ca061..5f836d22e 100644 --- a/launch.py +++ b/launch.py @@ -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"