From b4af319fa2190f008bcc9b6b3f73919e9035fde1 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 19 Apr 2023 01:43:10 -0300 Subject: [PATCH] Add a workaround for GALACTICA on some systems --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index 8e3e7c74..bc4f73f4 100644 --- a/server.py +++ b/server.py @@ -17,6 +17,10 @@ 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 import io import json