disable gradio analytics globally

This commit is contained in:
high_byte 2023-03-15 19:44:30 +02:00
parent 27e319dc4f
commit 79d261b7d4

View File

@ -16,6 +16,7 @@ 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'
def check_python_version(): def check_python_version():
is_windows = platform.system() == "Windows" is_windows = platform.system() == "Windows"