bill-jiang commited on
Commit
de25831
1 Parent(s): 5c14fae
Files changed (2) hide show
  1. app.py +5 -3
  2. pyrender/pyrender/__init__.py +4 -5
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import gradio as gr
2
  import random
3
  import torch
@@ -21,9 +26,6 @@ from transformers import WhisperProcessor, WhisperForConditionalGeneration
21
  import librosa
22
  from huggingface_hub import snapshot_download
23
 
24
- os.environ["PYOPENGL_PLATFORM"] = "egl"
25
- os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
26
- os.system('pip install /home/user/app/pyrender')
27
 
28
  # Load model
29
  cfg = parse_args(phase="webui") # parse config file
 
1
+
2
+ os.environ["PYOPENGL_PLATFORM"] = "egl"
3
+ os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
4
+ os.system('pip install /home/user/app/pyrender')
5
+
6
  import gradio as gr
7
  import random
8
  import torch
 
26
  import librosa
27
  from huggingface_hub import snapshot_download
28
 
 
 
 
29
 
30
  # Load model
31
  cfg = parse_args(phase="webui") # parse config file
pyrender/pyrender/__init__.py CHANGED
@@ -16,9 +16,8 @@ from .constants import RenderFlags, TextAlign, GLTF
16
 
17
  __all__ = [
18
  'Camera', 'PerspectiveCamera', 'OrthographicCamera', 'IntrinsicsCamera',
19
- 'Light', 'PointLight', 'DirectionalLight', 'SpotLight',
20
- 'Sampler', 'Texture', 'Material', 'MetallicRoughnessMaterial',
21
- 'Primitive', 'Mesh', 'Node', 'Scene', 'Renderer', 'Viewer',
22
- 'OffscreenRenderer', '__version__', 'RenderFlags', 'TextAlign',
23
- 'GLTF'
24
  ]
 
16
 
17
  __all__ = [
18
  'Camera', 'PerspectiveCamera', 'OrthographicCamera', 'IntrinsicsCamera',
19
+ 'Light', 'PointLight', 'DirectionalLight', 'SpotLight', 'Sampler',
20
+ 'Texture', 'Material', 'MetallicRoughnessMaterial', 'Primitive', 'Mesh',
21
+ 'Node', 'Scene', 'Renderer', 'Viewer', 'OffscreenRenderer', '__version__',
22
+ 'RenderFlags', 'TextAlign', 'GLTF'
 
23
  ]