Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -142,14 +142,16 @@ def run_end_to_end(image_path, text, voice, input_video, flag_relative, flag_do_
|
|
142 |
# args=args
|
143 |
# )
|
144 |
|
|
|
|
|
145 |
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
|
154 |
if input_video is None:
|
155 |
#audio_path = elevenlabs_pipeline.generate_voice(text, voice)
|
|
|
142 |
# args=args
|
143 |
# )
|
144 |
|
145 |
+
|
146 |
+
if input_video is None:
|
147 |
|
148 |
+
if not male:
|
149 |
+
stf_pipeline = STFPipeline()
|
150 |
+
else:
|
151 |
+
stf_pipeline = STFPipeline(template_video_path="/home/user/app/stf/TEMP/Cam2_2309071202_0012_Natural_Looped.mp4",
|
152 |
+
config_path="/home/user/app/stf/TEMP/front_config_v3.json",
|
153 |
+
checkpoint_path="/home/user/app/stf/TEMP/0157.pth",
|
154 |
+
)
|
155 |
|
156 |
if input_video is None:
|
157 |
#audio_path = elevenlabs_pipeline.generate_voice(text, voice)
|