Suppress "TypedStorage is deprecated" warnings

This commit is contained in:
oobabooga 2023-04-13 12:09:42 -03:00
parent 17ce7c8671
commit c13e8651ad

View File

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