Commit c1294d84 authored by AUTOMATIC's avatar AUTOMATIC

make it possible for user to enable gradio analytics by setting GRADIO_ANALYTICS_ENABLED=True

parent 501f40d8
...@@ -24,7 +24,8 @@ index_url = os.environ.get('INDEX_URL', "") ...@@ -24,7 +24,8 @@ index_url = os.environ.get('INDEX_URL', "")
stored_commit_hash = None stored_commit_hash = None
skip_install = False 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(): def check_python_version():
is_windows = platform.system() == "Windows" is_windows = platform.system() == "Windows"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment