Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import matplotlib
|
2 |
matplotlib.use('agg')
|
3 |
import os
|
4 |
-
os.system('Xvfb :1 -screen 0
|
5 |
os.environ['DISPLAY']=':1.0' # tell X clients to use our virtual DISPLAY :1.0
|
6 |
|
7 |
from PIL import Image
|
|
|
1 |
import matplotlib
|
2 |
matplotlib.use('agg')
|
3 |
import os
|
4 |
+
os.system('Xvfb :1 -screen 0 1600x1200x24 &') # 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
|