nickil commited on
Commit
95fb41a
1 Parent(s): 49a7516

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,10 +1,11 @@
1
- import os
2
  import matplotlib
3
  matplotlib.use('agg')
 
 
 
4
 
5
  from PIL import Image
6
 
7
-
8
  import gradio
9
  import benepar
10
  import spacy
 
 
1
  import matplotlib
2
  matplotlib.use('agg')
3
+ import os
4
+ 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
5
+ os.environ['DISPLAY']=':1.0' # tell X clients to use our virtual DISPLAY :1.0
6
 
7
  from PIL import Image
8
 
 
9
  import gradio
10
  import benepar
11
  import spacy