Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,11 @@ def process(input_vid, audio_path, pose_select, emotion_select, blink_select):
|
|
13 |
model = init_model()
|
14 |
pose = input_pose(pose_select)
|
15 |
emotion = input_emotion(emotion_select)
|
|
|
16 |
blink = input_blink(blink_select)
|
17 |
|
18 |
print("input_vid: ", input_vid)
|
19 |
-
result = infenrece(model, input_vid,
|
20 |
print("result: ", result)
|
21 |
|
22 |
print("finished !")
|
|
|
13 |
model = init_model()
|
14 |
pose = input_pose(pose_select)
|
15 |
emotion = input_emotion(emotion_select)
|
16 |
+
os.system(f"ffmpeg -y -loglevel error -i {audio_path} -vn -acodec pcm_s16le -ar 16000 -ac 1 2_output.wav")
|
17 |
blink = input_blink(blink_select)
|
18 |
|
19 |
print("input_vid: ", input_vid)
|
20 |
+
result = infenrece(model, input_vid, f"2_output.wav", pose, emotion, blink)
|
21 |
print("result: ", result)
|
22 |
|
23 |
print("finished !")
|