multimodalart HF Staff commited on
Commit
fab8dc6
·
verified ·
1 Parent(s): a8d1d0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -345,13 +345,15 @@ with gr.Blocks(title="MiniMax-H3") as demo:
345
  value="A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot",
346
  )
347
  with gr.Row():
348
- image = gr.Image(label="First keyframe (optional)", type="filepath")
349
- last_image = gr.Image(label="Last keyframe (optional)", type="filepath")
350
- canvas = gr.Dropdown(label="Canvas", choices=list(CANVASES), value=DEFAULT_CANVAS)
351
- duration = gr.Slider(label="Duration (s)", minimum=5, maximum=MAX_UI_DURATION, step=1, value=5)
352
- steps = gr.Slider(label="Steps", minimum=10, maximum=40, step=1, value=28)
353
- seed = gr.Number(label="Seed", value=42, precision=0)
354
  run = gr.Button("Generate", variant="primary")
 
 
 
 
 
 
355
  with gr.Column():
356
  video = gr.Video(label="Video + soundtrack")
357
  report = gr.Markdown(visible=False)
 
345
  value="A red fox trotting through a snowy pine forest at dawn, snow crunching underfoot",
346
  )
347
  with gr.Row():
348
+ image = gr.Image(label="First frame (optional)", type="filepath")
349
+ last_image = gr.Image(label="Last frame (optional)", type="filepath")
 
 
 
 
350
  run = gr.Button("Generate", variant="primary")
351
+ with gr.Accordion("Advanced options", open=False):
352
+ canvas = gr.Dropdown(label="Canvas", choices=list(CANVASES), value=DEFAULT_CANVAS)
353
+ duration = gr.Slider(label="Duration (s)", minimum=5, maximum=MAX_UI_DURATION, step=1, value=5)
354
+ steps = gr.Slider(label="Steps", minimum=10, maximum=40, step=1, value=28)
355
+ seed = gr.Number(label="Seed", value=42, precision=0)
356
+
357
  with gr.Column():
358
  video = gr.Video(label="Video + soundtrack")
359
  report = gr.Markdown(visible=False)