insanecoder69 commited on
Commit
ff94b89
·
verified ·
1 Parent(s): 53ef629

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,9 @@ from pydub import AudioSegment
5
  import tempfile
6
 
7
  # Set OpenGL platform
8
- os.environ["PYOPENGL_PLATFORM"] = "osmesa"
 
 
9
 
10
  # Paths to TalkShow demo script and configuration
11
  DEMO_SCRIPT_PATH = "scripts/demo.py"
 
5
  import tempfile
6
 
7
  # Set OpenGL platform
8
+ os.environ["PYOPENGL_PLATFORM"] = "egl"
9
+ os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
10
+ os.system('pip install /home/user/app/pyrender')
11
 
12
  # Paths to TalkShow demo script and configuration
13
  DEMO_SCRIPT_PATH = "scripts/demo.py"