SingleZombie commited on
Commit
289d042
1 Parent(s): 3592f41

update example

Browse files
Files changed (2) hide show
  1. app.py +8 -4
  2. config/config_boxer.yaml +1 -1
app.py CHANGED
@@ -569,10 +569,7 @@ with block:
569
  b1, b2, s1, s2
570
  ]
571
 
572
- gr.Examples(
573
- examples=example_list,
574
- inputs=[*ips],
575
- )
576
 
577
  with gr.Column():
578
  result_keyframe = gr.Video(label='Output key frame video',
@@ -604,6 +601,13 @@ with block:
604
  value=frame_count,
605
  maximum=frame_count),
606
  )
 
 
 
 
 
 
 
607
 
608
  input_path.change(input_changed, input_path, [
609
  mininterv, maxinterv, frame_count])
 
569
  b1, b2, s1, s2
570
  ]
571
 
572
+ example = gr.Label('')
 
 
 
573
 
574
  with gr.Column():
575
  result_keyframe = gr.Video(label='Output key frame video',
 
601
  value=frame_count,
602
  maximum=frame_count),
603
  )
604
+ example = gr.Examples(
605
+ examples=example_list,
606
+ inputs=[*ips],
607
+ fn=process1,
608
+ outputs=[result_keyframe],
609
+ cache_examples=True
610
+ )
611
 
612
  input_path.change(input_changed, input_path, [
613
  mininterv, maxinterv, frame_count])
config/config_boxer.yaml CHANGED
@@ -9,7 +9,7 @@ seed: 0
9
  prompt: 'An African American boxer wearing black boxing gloves punches towards the camera, cartoon style'
10
  sd_path: 'stablediffusionapi/flat-2d-animerge'
11
  use_controlnet: True
12
- controlnet_type: 'depth' # 'hed', 'canny'
13
  cond_scale: 0.7
14
  use_freeu: False
15
 
 
9
  prompt: 'An African American boxer wearing black boxing gloves punches towards the camera, cartoon style'
10
  sd_path: 'stablediffusionapi/flat-2d-animerge'
11
  use_controlnet: True
12
+ controlnet_type: 'hed' # 'hed', 'canny'
13
  cond_scale: 0.7
14
  use_freeu: False
15