Spaces:
Runtime error
Runtime error
Commit
·
87bb561
1
Parent(s):
52c9888
Update
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
os.environ["PYOPENGL_PLATFORM"] = "egl" #opengl seems to only work with TPU
|
|
|
|
| 5 |
from OpenGL import EGL
|
| 6 |
print(os.environ['PYOPENGL_PLATFORM'])
|
| 7 |
|
|
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
os.environ["PYOPENGL_PLATFORM"] = "egl" #opengl seems to only work with TPU
|
| 5 |
+
os.environ['DISPLAY'] = ':0.0'
|
| 6 |
from OpenGL import EGL
|
| 7 |
print(os.environ['PYOPENGL_PLATFORM'])
|
| 8 |
|