Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -99,21 +99,22 @@ with gr.Blocks(css=css) as demo:
|
|
99 |
Generate live camera shot from input face
|
100 |
</p>
|
101 |
""")
|
102 |
-
with gr.
|
103 |
-
with gr.
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
117 |
|
118 |
with gr.Column():
|
119 |
submit_btn = gr.Button("Submit")
|
|
|
99 |
Generate live camera shot from input face
|
100 |
</p>
|
101 |
""")
|
102 |
+
with gr.Group():
|
103 |
+
with gr.Row():
|
104 |
+
with gr.Column():
|
105 |
+
face_in = gr.Image(type="filepath", label="Face to copy")
|
106 |
+
with gr.Column():
|
107 |
+
camera_shot = gr.Dropdown(
|
108 |
+
label = "Camera Shot",
|
109 |
+
info = "Use standard camera shots vocabulary, or drop your custom shot as conditional pose (1280*720 ratio is recommended)",
|
110 |
+
choices = [
|
111 |
+
"custom", "close-up", "medium close-up", "medium shot", "cowboy shot", "medium full shot", "full shot"
|
112 |
+
],
|
113 |
+
value = "custom"
|
114 |
+
)
|
115 |
+
condition_shot = gr.Image(type="filepath", label="Custom conditional shot (Optional)")
|
116 |
+
prompt = gr.Textbox(label="Prompt")
|
117 |
+
chosen_model = gr.Radio(label="Choose a model", choices=["i2vgen-xl", "stable-video"], value="i2vgen-xl", interactive=False, visible=False)
|
118 |
|
119 |
with gr.Column():
|
120 |
submit_btn = gr.Button("Submit")
|