Spaces:
Runtime error
Runtime error
zejunyang
commited on
Commit
•
c2e3c78
1
Parent(s):
5ef3823
update
Browse files
app.py
CHANGED
@@ -20,9 +20,10 @@ with gr.Blocks() as demo:
|
|
20 |
with gr.Column():
|
21 |
with gr.Row():
|
22 |
a2v_input_audio = gr.Audio(sources=["upload", "microphone"], type="filepath", editable=True, label="Input audio", interactive=True)
|
23 |
-
with gr.Column():
|
24 |
-
|
25 |
-
|
|
|
26 |
a2v_headpose_video = gr.Video(label="Option: upload head pose reference video", sources="upload")
|
27 |
|
28 |
with gr.Row():
|
@@ -40,9 +41,10 @@ with gr.Blocks() as demo:
|
|
40 |
with gr.Tab("Video2video"):
|
41 |
with gr.Column():
|
42 |
with gr.Row():
|
43 |
-
with gr.Column():
|
44 |
-
|
45 |
-
|
|
|
46 |
v2v_source_video = gr.Video(label="Upload source video", sources="upload")
|
47 |
|
48 |
with gr.Row():
|
@@ -55,7 +57,6 @@ with gr.Blocks() as demo:
|
|
55 |
|
56 |
v2v_botton = gr.Button("Generate", variant="primary")
|
57 |
v2v_output_video = gr.PlayableVideo(label="Result", interactive=False)
|
58 |
-
v2v_bg_restore_botton = gr.Button("Background restoration with SAM")
|
59 |
|
60 |
a2v_botton.click(
|
61 |
fn=audio2video,
|
|
|
20 |
with gr.Column():
|
21 |
with gr.Row():
|
22 |
a2v_input_audio = gr.Audio(sources=["upload", "microphone"], type="filepath", editable=True, label="Input audio", interactive=True)
|
23 |
+
# with gr.Column():
|
24 |
+
# a2v_ref_img = gr.Image(label="Upload reference image", sources="upload")
|
25 |
+
# a2v_img_trans_real_botton = gr.Button("Translate to realistic style")
|
26 |
+
a2v_ref_img = gr.Image(label="Upload reference image", sources="upload")
|
27 |
a2v_headpose_video = gr.Video(label="Option: upload head pose reference video", sources="upload")
|
28 |
|
29 |
with gr.Row():
|
|
|
41 |
with gr.Tab("Video2video"):
|
42 |
with gr.Column():
|
43 |
with gr.Row():
|
44 |
+
# with gr.Column():
|
45 |
+
# v2v_ref_img = gr.Image(label="Upload reference image", sources="upload")
|
46 |
+
# v2v_img_trans_real_botton = gr.Button("Translate to realistic style")
|
47 |
+
v2v_ref_img = gr.Image(label="Upload reference image", sources="upload")
|
48 |
v2v_source_video = gr.Video(label="Upload source video", sources="upload")
|
49 |
|
50 |
with gr.Row():
|
|
|
57 |
|
58 |
v2v_botton = gr.Button("Generate", variant="primary")
|
59 |
v2v_output_video = gr.PlayableVideo(label="Result", interactive=False)
|
|
|
60 |
|
61 |
a2v_botton.click(
|
62 |
fn=audio2video,
|