Spaces:
Running
Running
Update app_multi.py
Browse files- app_multi.py +0 -28
app_multi.py
CHANGED
@@ -74,35 +74,7 @@ def auto_search(name):
|
|
74 |
|
75 |
return (sampling_rate, signal)
|
76 |
|
77 |
-
# SadTalker
|
78 |
-
|
79 |
-
import os, sys
|
80 |
-
from src.gradio_demo import SadTalker
|
81 |
-
|
82 |
-
|
83 |
-
try:
|
84 |
-
import webui # in webui
|
85 |
-
in_webui = True
|
86 |
-
except:
|
87 |
-
in_webui = False
|
88 |
-
|
89 |
-
|
90 |
-
def toggle_audio_file(choice):
|
91 |
-
if choice == False:
|
92 |
-
return gr.update(visible=True), gr.update(visible=False)
|
93 |
-
else:
|
94 |
-
return gr.update(visible=False), gr.update(visible=True)
|
95 |
|
96 |
-
def ref_video_fn(path_of_ref_video):
|
97 |
-
if path_of_ref_video is not None:
|
98 |
-
return gr.update(value=True)
|
99 |
-
else:
|
100 |
-
return gr.update(value=False)
|
101 |
-
|
102 |
-
sad_talker = SadTalker("checkpoints", "src/config", lazy_load=True)
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
# combine video with music
|
107 |
|
108 |
def combine_music(video, audio):
|
|
|
74 |
|
75 |
return (sampling_rate, signal)
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
# combine video with music
|
79 |
|
80 |
def combine_music(video, audio):
|