From c13e8651ad41b1043e22c3150255692e3bc3eb3f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:09:42 -0300 Subject: [PATCH] Suppress "TypedStorage is deprecated" warnings --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 50f5715..8feb081 100644 --- a/server.py +++ b/server.py @@ -1,7 +1,9 @@ import os +import warnings os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False' os.environ['BITSANDBYTES_NOWELCOME'] = '1' +warnings.filterwarnings('ignore', category=UserWarning, message='TypedStorage is deprecated') import importlib import io