fffiloni commited on
Commit
9e7d1c3
1 Parent(s): 333f81c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -15
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.Row():
103
- with gr.Column():
104
- face_in = gr.Image(type="filepath", label="Face to copy")
105
- with gr.Column():
106
- camera_shot = gr.Dropdown(
107
- label = "Camera Shot",
108
- info = "Use standard camera shots vocabulary, or drop your custom shot as conditional pose (1280*720 ratio is recommended)",
109
- choices = [
110
- "custom", "close-up", "medium close-up", "medium shot", "cowboy shot", "medium full shot", "full shot"
111
- ],
112
- value = "custom"
113
- )
114
- condition_shot = gr.Image(type="filepath", label="Custom conditional shot (Optional)")
115
- prompt = gr.Textbox(label="Prompt")
116
- chosen_model = gr.Radio(label="Choose a model", choices=["i2vgen-xl", "stable-video"], value="i2vgen-xl", interactive=False, visible=False)
 
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")