Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,11 @@ from PIL import Image
|
|
11 |
|
12 |
# print file path
|
13 |
print(os.path.abspath(__file__))
|
|
|
|
|
14 |
os.system('pip install /home/user/app/vendor/pyrender')
|
15 |
sys.path.append('/home/user/app/vendor/pyrender')
|
16 |
-
os.system('pip install gradio==3.26.0')
|
17 |
from hmr2.configs import get_config
|
18 |
from hmr2.datasets.vitdet_dataset import (DEFAULT_MEAN, DEFAULT_STD,
|
19 |
ViTDetDataset)
|
|
|
11 |
|
12 |
# print file path
|
13 |
print(os.path.abspath(__file__))
|
14 |
+
os.environ["PYOPENGL_PLATFORM"] = "egl"
|
15 |
+
os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
|
16 |
os.system('pip install /home/user/app/vendor/pyrender')
|
17 |
sys.path.append('/home/user/app/vendor/pyrender')
|
18 |
+
#os.system('pip install gradio==3.26.0')
|
19 |
from hmr2.configs import get_config
|
20 |
from hmr2.datasets.vitdet_dataset import (DEFAULT_MEAN, DEFAULT_STD,
|
21 |
ViTDetDataset)
|