Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,7 @@ import subprocess
|
|
3 |
import os
|
4 |
import sys
|
5 |
os.environ["PYOPENGL_PLATFORM"] = "egl"
|
6 |
-
|
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 = './
|
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
|
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:
|