insanecoder69 commited on
Commit
a40e0c1
·
verified ·
1 Parent(s): 7d436c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -3,9 +3,7 @@ import subprocess
3
  import os
4
  import sys
5
  os.environ["PYOPENGL_PLATFORM"] = "egl"
6
- os.environ["MESA_GL_VERSION_OVERRIDE"] = "4.1"
7
- os.system('pip install /home/user/app/pyrender')
8
- sys.path.append('/home/user/app/pyrender')
9
  def run_talkshow_model(audio_file):
10
  # Path to the TalkSHOW demo script
11
  demo_script = 'scripts/demo.py'
@@ -19,7 +17,7 @@ def run_talkshow_model(audio_file):
19
  audio_file_path = audio_file
20
 
21
  # Path where the output .mp4 video will be saved
22
- output_video_path = './output_video/result.mp4'
23
 
24
  # Run the demo.py script with the necessary arguments
25
  command = [
@@ -30,7 +28,7 @@ def run_talkshow_model(audio_file):
30
  '--body_model_name', body_model_name,
31
  '--body_model_path', body_model_path,
32
  '--id', '0',
33
- '--output', output_video_path # Assuming demo.py has an argument to specify output
34
  ]
35
 
36
  try:
 
3
  import os
4
  import sys
5
  os.environ["PYOPENGL_PLATFORM"] = "egl"
6
+
 
 
7
  def run_talkshow_model(audio_file):
8
  # Path to the TalkSHOW demo script
9
  demo_script = 'scripts/demo.py'
 
17
  audio_file_path = audio_file
18
 
19
  # Path where the output .mp4 video will be saved
20
+ output_video_path = './visualise/result.mp4'
21
 
22
  # Run the demo.py script with the necessary arguments
23
  command = [
 
28
  '--body_model_name', body_model_name,
29
  '--body_model_path', body_model_path,
30
  '--id', '0',
31
+ '--output', output_video_path
32
  ]
33
 
34
  try: