jbilcke-hf HF staff commited on
Commit
a13ef7a
1 Parent(s): 71d7ef7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -19
app.py CHANGED
@@ -124,25 +124,22 @@ with gr.Blocks() as app:
124
  </div>
125
  </div>""")
126
 
127
- with gr.Tab():
128
- with gr.Column():
129
- with gr.Row():
130
- secret_token = gr.Text(label='Secret Token', max_lines=1)
131
- i2v_input_image = gr.Image(label="Input Image",elem_id="input_img")
132
- i2v_input_text = gr.Text(label='Prompts')
133
- i2v_seed = gr.Slider(label='Random Seed', minimum=0, maximum=10000, step=1, value=123)
134
- i2v_eta = gr.Slider(minimum=0.0, maximum=1.0, step=0.1, label='ETA', value=1.0, elem_id="i2v_eta")
135
- i2v_cfg_scale = gr.Slider(minimum=1.0, maximum=15.0, step=0.5, label='CFG Scale', value=7.5, elem_id="i2v_cfg_scale")
136
- i2v_steps = gr.Slider(minimum=1, maximum=60, step=1, elem_id="i2v_steps", label="Sampling steps", value=50)
137
- i2v_motion = gr.Slider(minimum=5, maximum=20, step=1, elem_id="i2v_motion", label="FPS", value=10)
138
- i2v_end_btn = gr.Button("Generate")
139
-
140
- with gr.Row():
141
- i2v_output_video_base64 = gr.Text()
142
-
143
- i2v_end_btn.click(inputs=[secret_token, i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed],
144
  outputs=[i2v_output_video_base64],
145
  fn = infer
146
- )
147
 
148
- app.queue(max_size=12).launch(show_api=True)
 
124
  </div>
125
  </div>""")
126
 
127
+
128
+ secret_token = gr.Text(label='Secret Token', max_lines=1)
129
+ i2v_input_image = gr.Image(label="Input Image",elem_id="input_img")
130
+ i2v_input_text = gr.Text(label='Prompts')
131
+ i2v_seed = gr.Slider(label='Random Seed', minimum=0, maximum=10000, step=1, value=123)
132
+ i2v_eta = gr.Slider(minimum=0.0, maximum=1.0, step=0.1, label='ETA', value=1.0, elem_id="i2v_eta")
133
+ i2v_cfg_scale = gr.Slider(minimum=1.0, maximum=15.0, step=0.5, label='CFG Scale', value=7.5, elem_id="i2v_cfg_scale")
134
+ i2v_steps = gr.Slider(minimum=1, maximum=60, step=1, elem_id="i2v_steps", label="Sampling steps", value=50)
135
+ i2v_motion = gr.Slider(minimum=5, maximum=20, step=1, elem_id="i2v_motion", label="FPS", value=10)
136
+ i2v_end_btn = gr.Button("Generate")
137
+
138
+ i2v_output_video_base64 = gr.Text()
139
+
140
+ i2v_end_btn.click(inputs=[secret_token, i2v_input_image, i2v_input_text, i2v_steps, i2v_cfg_scale, i2v_eta, i2v_motion, i2v_seed],
 
 
 
141
  outputs=[i2v_output_video_base64],
142
  fn = infer
143
+ )
144
 
145
+ app.queue(max_size=4).launch(show_api=True)