wangfuyun commited on
Commit
53cae7c
1 Parent(s): 7b06b6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -0
app.py CHANGED
@@ -341,6 +341,34 @@ def ui():
341
  ],
342
  outputs=[result_video]
343
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
 
345
  return demo
346
 
 
341
  ],
342
  outputs=[result_video]
343
  )
344
+
345
+ examples = [
346
+ [0.8, 0.8, "a boy is holding a rabbit", "bad quality", "LCM", 8, 512, 16, 512, 1.5, 1234],
347
+ [0.8, 0.8, "1girl smiling", "bad quality", "LCM", 4, 512, 16, 512, 1.5, 1233],
348
+ [0.8, 0.8, "1girl,face,white background,", "bad quality", "LCM", 6, 512, 16, 512, 1.5, 1234],
349
+ [0.8, 0.8, "clouds in the sky, best quality", "bad quality", "LCM", 4, 512, 16, 512, 1.5, 1234],
350
+
351
+
352
+ ]
353
+ gr.Examples(
354
+ examples = examples,
355
+ inputs=[
356
+ lora_alpha_slider,
357
+ spatial_lora_slider,
358
+ prompt_textbox,
359
+ negative_prompt_textbox,
360
+ sampler_dropdown,
361
+ sample_step_slider,
362
+ width_slider,
363
+ length_slider,
364
+ height_slider,
365
+ cfg_scale_slider,
366
+ seed_textbox,
367
+ ],
368
+ outputs=[result_video],
369
+ fn=controller.animate,
370
+ cache_examples=True,
371
+ )
372
 
373
  return demo
374