nickil commited on
Commit
132231d
·
1 Parent(s): d614b9e

format trees

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. packages.txt +1 -0
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import matplotlib
2
  matplotlib.use('Agg')
3
 
 
 
 
 
4
  import gradio
5
  import benepar
6
  import spacy
 
1
  import matplotlib
2
  matplotlib.use('Agg')
3
 
4
+ import os
5
+ os.system('Xvfb :1 -screen 0 1600x1200x16 &') # create virtual display with size 1600x1200 and 16 bit color. Color can be changed to 24 or 8
6
+ os.environ['DISPLAY']=':1.0'
7
+
8
  import gradio
9
  import benepar
10
  import spacy
packages.txt CHANGED
@@ -1,2 +1,3 @@
 
1
  ghostscript
2
  python3-tk
 
1
+ xvfb
2
  ghostscript
3
  python3-tk