GrayShine commited on
Commit
8fc1c58
β€’
1 Parent(s): ffea834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -291,12 +291,12 @@ with gr.Blocks() as demo:
291
  with gr.Column(visible=True) as input_raws:
292
  with gr.Row():
293
  with gr.Column(scale=1.0):
294
- text_input = gr.Textbox(show_label=True, interactive=True, label="Text prompt").style(container=False)
295
  with gr.Row():
296
  with gr.Column(scale=0.5):
297
- image_input = gr.Image(show_label=True, interactive=True, label="Reference image").style(container=False)
298
  with gr.Column(scale=0.5):
299
- preframe_input = gr.Image(show_label=True, interactive=True, label="First frame").style(container=False)
300
  with gr.Row():
301
  with gr.Column(scale=1.0):
302
  scfg_scale = gr.Slider(
@@ -343,13 +343,7 @@ with gr.Blocks() as demo:
343
  with gr.Column(scale=0.5, min_width=0):
344
  clear = gr.Button("πŸ”„Clear️")
345
  with gr.Column(scale=0.5, visible=True) as video_upload:
346
- output_video = gr.Video(interactive=False, include_audio=True, elem_id="θΎ“ε‡Ίηš„θ§†ι’‘")#.style(height=360)
347
- # with gr.Column(elem_id="image", scale=0.5) as img_part:
348
- # with gr.Tab("Video", elem_id='video_tab'):
349
-
350
- # with gr.Tab("Image", elem_id='image_tab'):
351
- # up_image = gr.Image(type="pil", interactive=True, elem_id="image_upload").style(height=360)
352
- # upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
353
  clear = gr.Button("Restart")
354
  tcfg_scale = scfg_scale
355
  run.click(gen_or_pre, [text_input, image_input, scfg_scale, tcfg_scale, img_cfg_scale, preframe_input, diffusion_step], [output_video])
 
291
  with gr.Column(visible=True) as input_raws:
292
  with gr.Row():
293
  with gr.Column(scale=1.0):
294
+ text_input = gr.Textbox(show_label=True, interactive=True, label="Text prompt")
295
  with gr.Row():
296
  with gr.Column(scale=0.5):
297
+ image_input = gr.Image(show_label=True, interactive=True, label="Reference image")
298
  with gr.Column(scale=0.5):
299
+ preframe_input = gr.Image(show_label=True, interactive=True, label="First frame")
300
  with gr.Row():
301
  with gr.Column(scale=1.0):
302
  scfg_scale = gr.Slider(
 
343
  with gr.Column(scale=0.5, min_width=0):
344
  clear = gr.Button("πŸ”„Clear️")
345
  with gr.Column(scale=0.5, visible=True) as video_upload:
346
+ output_video = gr.Video(interactive=False, include_audio=True, elem_id="θΎ“ε‡Ίηš„θ§†ι’‘")
 
 
 
 
 
 
347
  clear = gr.Button("Restart")
348
  tcfg_scale = scfg_scale
349
  run.click(gen_or_pre, [text_input, image_input, scfg_scale, tcfg_scale, img_cfg_scale, preframe_input, diffusion_step], [output_video])