multimodalart HF Staff commited on
Commit
7b893b3
·
verified ·
1 Parent(s): 96362e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,7 +127,7 @@ def check_duration(
127
  progress
128
  ):
129
  if use_distill and resolution=="480p":
130
- return 240
131
  elif resolution=="720p":
132
  return 360
133
  else:
@@ -256,7 +256,7 @@ with gr.Blocks(css=css) as demo:
256
  distill_i2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
257
  refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
258
 
259
- i2v_button = gr.Button("Generate Video", variant="primary")
260
  with gr.Column(scale=3):
261
  video_output_i2v = gr.Video(label="Generated Video", interactive=False)
262
 
 
127
  progress
128
  ):
129
  if use_distill and resolution=="480p":
130
+ return 180
131
  elif resolution=="720p":
132
  return 360
133
  else:
 
256
  distill_i2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
257
  refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
258
 
259
+ i2v_button = gr.Button("Generate 6s video", variant="primary")
260
  with gr.Column(scale=3):
261
  video_output_i2v = gr.Video(label="Generated Video", interactive=False)
262