diff --git a/server.py b/server.py index c79d63e..2de817c 100644 --- a/server.py +++ b/server.py @@ -1,7 +1,6 @@ import os -import warnings - import requests +import warnings os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False' os.environ['BITSANDBYTES_NOWELCOME'] = '1' @@ -16,12 +15,10 @@ def my_get(url, **kwargs): original_get = requests.get requests.get = my_get import gradio as gr - requests.get = original_get # This fixes LaTeX rendering on some systems import matplotlib - matplotlib.use('Agg') import importlib