zwq2018 commited on
Commit
fc1c95e
1 Parent(s): 9418e94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1,4 +1,16 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
2
  #输入文本处理程序
3
  def greet(name):
4
  return "Hello " + name + "!"
 
1
  import gradio as gr
2
+
3
+ import os
4
+
5
+ # 设置 matplotlib 和 fontconfig 的配置目录为/tmp
6
+ os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib_config"
7
+ os.environ["FONTCONFIG_PATH"] = "/tmp/fontconfig"
8
+
9
+ # 现在导入matplotlib
10
+
11
+
12
+
13
+
14
  #输入文本处理程序
15
  def greet(name):
16
  return "Hello " + name + "!"