Add a workaround for GALACTICA on some systems

This commit is contained in:
oobabooga 2023-04-19 01:43:10 -03:00
parent 0ba4095504
commit b4af319fa2

View File

@ -17,6 +17,10 @@ requests.get = my_get
import gradio as gr import gradio as gr
requests.get = original_get requests.get = original_get
# This fixes LaTeX rendering on some systems
import matplotlib
matplotlib.use('Agg')
import importlib import importlib
import io import io
import json import json