From 2dca8bb25e2049d9a563833914ba45e07ac74d64 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:20:59 -0300 Subject: [PATCH] Sort imports --- server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server.py b/server.py index c79d63ec..2de817cb 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