Commit c1294d84 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

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

parent 501f40d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@ index_url = os.environ.get('INDEX_URL', "")
stored_commit_hash = None
stored_commit_hash = None
skip_install = False
skip_install = False


if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
    os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
    os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'


def check_python_version():
def check_python_version():