Spaces:
Sleeping
Sleeping
SceneDiffuser
commited on
Commit
•
cf10ae8
1
Parent(s):
39f8021
Update
Browse files- app.py +1 -1
- packages.txt +3 -1
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
import os
|
4 |
-
os.environ["PYOPENGL_PLATFORM"] = "
|
5 |
from OpenGL import EGL
|
6 |
print(os.environ['PYOPENGL_PLATFORM'])
|
7 |
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
import os
|
4 |
+
os.environ["PYOPENGL_PLATFORM"] = "osmesa" #opengl seems to only work with TPU
|
5 |
from OpenGL import EGL
|
6 |
print(os.environ['PYOPENGL_PLATFORM'])
|
7 |
|
packages.txt
CHANGED
@@ -19,4 +19,6 @@ freeglut3-dev
|
|
19 |
libosmesa6
|
20 |
libosmesa6-dev
|
21 |
libglx-mesa0
|
22 |
-
libglew-dev
|
|
|
|
|
|
19 |
libosmesa6
|
20 |
libosmesa6-dev
|
21 |
libglx-mesa0
|
22 |
+
libglew-dev
|
23 |
+
osmesa
|
24 |
+
llvm-6.0
|