Monkey patch gradio to prevent it from calling home

This commit is contained in:
oobabooga 2023-04-18 01:13:16 -03:00 committed by GitHub
parent 6a810b16b2
commit 00186f76f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import warnings
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
os.environ['BITSANDBYTES_NOWELCOME'] = '1'
warnings.filterwarnings('ignore', category=UserWarning, message='TypedStorage is deprecated')
from modules import monkey_patch_gradio
import importlib
import io