Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ output_video_concat = gr.Video()
|
|
125 |
|
126 |
|
127 |
|
128 |
-
def run_end_to_end(image_path, text, voice, input_video, flag_relative, flag_do_crop, flag_remap, flag_crop_driving_video, male
|
129 |
|
130 |
# # animal 체크 여부에 따라 다른 pipeline 사용
|
131 |
# if animal:
|
@@ -198,7 +198,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
198 |
with gr.Row():
|
199 |
image_input = gr.Image(type="filepath") # 여기서 image_input을 정의합니다.
|
200 |
output_video.render()
|
201 |
-
crop_output_video.render()
|
|
|
202 |
|
203 |
with gr.Row():
|
204 |
flag_relative_input = gr.Checkbox(value=True, label="relative motion")
|
@@ -206,7 +207,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
206 |
flag_remap_input = gr.Checkbox(value=True, label="paste-back")
|
207 |
flag_crop_driving_video_input = gr.Checkbox(value=False, label="do crop (driving video)")
|
208 |
male = gr.Checkbox(value=False, label="male")
|
209 |
-
animal = gr.Checkbox(value=False, label="animal") # animal 체크박스 추가
|
210 |
|
211 |
with gr.Row():
|
212 |
generate_speech = gr.Button("🚀 Generate Speech", variant="primary")
|
@@ -223,7 +224,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
223 |
flag_remap_input,
|
224 |
flag_crop_driving_video_input,
|
225 |
male,
|
226 |
-
animal # 추가된 animal 입력
|
227 |
],
|
228 |
outputs=[output_video, crop_output_video]
|
229 |
)
|
|
|
125 |
|
126 |
|
127 |
|
128 |
+
def run_end_to_end(image_path, text, voice, input_video, flag_relative, flag_do_crop, flag_remap, flag_crop_driving_video, male): #, animal):
|
129 |
|
130 |
# # animal 체크 여부에 따라 다른 pipeline 사용
|
131 |
# if animal:
|
|
|
198 |
with gr.Row():
|
199 |
image_input = gr.Image(type="filepath") # 여기서 image_input을 정의합니다.
|
200 |
output_video.render()
|
201 |
+
#crop_output_video.render()
|
202 |
+
output_video_concat.render()
|
203 |
|
204 |
with gr.Row():
|
205 |
flag_relative_input = gr.Checkbox(value=True, label="relative motion")
|
|
|
207 |
flag_remap_input = gr.Checkbox(value=True, label="paste-back")
|
208 |
flag_crop_driving_video_input = gr.Checkbox(value=False, label="do crop (driving video)")
|
209 |
male = gr.Checkbox(value=False, label="male")
|
210 |
+
#animal = gr.Checkbox(value=False, label="animal") # animal 체크박스 추가
|
211 |
|
212 |
with gr.Row():
|
213 |
generate_speech = gr.Button("🚀 Generate Speech", variant="primary")
|
|
|
224 |
flag_remap_input,
|
225 |
flag_crop_driving_video_input,
|
226 |
male,
|
227 |
+
#animal # 추가된 animal 입력
|
228 |
],
|
229 |
outputs=[output_video, crop_output_video]
|
230 |
)
|