LeoXing1996 commited on
Commit
9e4d006
β€’
1 Parent(s): 21f4c50

revise title

Browse files
Files changed (1) hide show
  1. app-huggingface.py +29 -29
app-huggingface.py CHANGED
@@ -37,8 +37,8 @@ def add_text(gif_file: str, mp4_file: str, text_index: int):
37
  except EOFError:
38
  pass
39
 
40
- text = ['Happy New Year!', 'Happy New Year!',
41
- 'Happy New Year!', 'Happy New Year!'][text_index]
42
  size = [36, 36, 36, 36][text_index]
43
 
44
  for i, frame in enumerate(frames):
@@ -431,8 +431,8 @@ def ui():
431
  value='lift a red envelope, Chinese new year')
432
  default_prompt2 = gr.State(
433
  value='smiling, Chinese costume, Chinese new year')
434
- # default_prompt3 = gr.State(
435
- # value='angry, Chinese costume, Chinese new year')
436
  default_prompt4 = gr.State(value='sparklers, Chinese new year')
437
  default_n_prompt = gr.State(value='wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg')
438
  default_seed = gr.State(10201304011203481448)
@@ -469,9 +469,9 @@ def ui():
469
  with gr.Column(scale=1, min_width=50):
470
  default_2 = gr.Button(
471
  'πŸ€—', variant='primary', size='sm')
472
- # with gr.Column(scale=1, min_width=50):
473
- # default_3 = gr.Button(
474
- # '😑', variant='primary', size='sm')
475
  with gr.Column(scale=1, min_width=50):
476
  default_4 = gr.Button(
477
  '🧨', variant='primary', size='sm')
@@ -606,28 +606,28 @@ def ui():
606
  default_motion,
607
  default_cfg,
608
  ])
609
- # default_3.click(
610
- # fn=controller.animate_example,
611
- # inputs=[
612
- # init_img,
613
- # default_motion,
614
- # default_prompt3,
615
- # default_n_prompt,
616
- # sample_step_slider,
617
- # default_cfg,
618
- # default_seed,
619
- # default_ip_adapter_scale,
620
- # default_style,
621
- # with_wishes,
622
- # default_3_idx,
623
- # ],
624
- # outputs=[
625
- # result_video,
626
- # download,
627
- # default_seed,
628
- # default_motion,
629
- # default_cfg,
630
- # ])
631
  default_4.click(
632
  fn=controller.animate_example,
633
  inputs=[
 
37
  except EOFError:
38
  pass
39
 
40
+ text = ['Earn More Money!', 'Happy New Year!',
41
+ 'Bad Luck Go Away!', 'Happy New Year!'][text_index]
42
  size = [36, 36, 36, 36][text_index]
43
 
44
  for i, frame in enumerate(frames):
 
431
  value='lift a red envelope, Chinese new year')
432
  default_prompt2 = gr.State(
433
  value='smiling, Chinese costume, Chinese new year')
434
+ default_prompt3 = gr.State(
435
+ value='angry, Chinese costume, Chinese new year')
436
  default_prompt4 = gr.State(value='sparklers, Chinese new year')
437
  default_n_prompt = gr.State(value='wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg')
438
  default_seed = gr.State(10201304011203481448)
 
469
  with gr.Column(scale=1, min_width=50):
470
  default_2 = gr.Button(
471
  'πŸ€—', variant='primary', size='sm')
472
+ with gr.Column(scale=1, min_width=50):
473
+ default_3 = gr.Button(
474
+ '😑', variant='primary', size='sm')
475
  with gr.Column(scale=1, min_width=50):
476
  default_4 = gr.Button(
477
  '🧨', variant='primary', size='sm')
 
606
  default_motion,
607
  default_cfg,
608
  ])
609
+ default_3.click(
610
+ fn=controller.animate_example,
611
+ inputs=[
612
+ init_img,
613
+ default_motion,
614
+ default_prompt3,
615
+ default_n_prompt,
616
+ sample_step_slider,
617
+ default_cfg,
618
+ default_seed,
619
+ default_ip_adapter_scale,
620
+ default_style,
621
+ with_wishes,
622
+ default_3_idx,
623
+ ],
624
+ outputs=[
625
+ result_video,
626
+ download,
627
+ default_seed,
628
+ default_motion,
629
+ default_cfg,
630
+ ])
631
  default_4.click(
632
  fn=controller.animate_example,
633
  inputs=[