LeoXing1996 commited on
Commit
f0bcc62
·
1 Parent(s): 280b08b

update button

Browse files
Files changed (1) hide show
  1. app-huggingface.py +10 -6
app-huggingface.py CHANGED
@@ -304,8 +304,8 @@ def ui():
304
  example_img = gr.State(value='__assets__/image_animation/zhening/zhening.jpeg')
305
  default_motion = gr.State(value=1)
306
  default_prompt1 = gr.State(value='lift a red envelope, Chinese new year')
307
- default_prompt2 = gr.State(value='New Year\'s greetings, Chinese new year')
308
- default_prompt3 = gr.State(value='Chinese costume, Chinese new year')
309
  default_prompt4 = gr.State(value='sparklers, Chinese new year')
310
  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')
311
  default_seed = gr.State(10201304011203481448)
@@ -319,10 +319,14 @@ def ui():
319
 
320
  gr.Markdown('## Fast Try!')
321
  with gr.Row():
322
- default_1 = gr.Button('🧨', variant='primary')
323
- default_2 = gr.Button('🧨', variant='primary')
324
- default_3 = gr.Button('🧨', variant='primary')
325
- default_4 = gr.Button('🧨', variant='primary')
 
 
 
 
326
 
327
  style_dropdown = gr.Dropdown(label='Style', choices=list(
328
  STYLE_CONFIG_LIST.keys()), value=list(STYLE_CONFIG_LIST.keys())[0])
 
304
  example_img = gr.State(value='__assets__/image_animation/zhening/zhening.jpeg')
305
  default_motion = gr.State(value=1)
306
  default_prompt1 = gr.State(value='lift a red envelope, Chinese new year')
307
+ default_prompt2 = gr.State(value='smiling, Chinese costume, Chinese new year')
308
+ default_prompt3 = gr.State(value='angry, Chinese costume, Chinese new year')
309
  default_prompt4 = gr.State(value='sparklers, Chinese new year')
310
  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')
311
  default_seed = gr.State(10201304011203481448)
 
319
 
320
  gr.Markdown('## Fast Try!')
321
  with gr.Row():
322
+ with gr.Column(scale=0.125):
323
+ default_1 = gr.Button('🧧', variant='primary')
324
+ with gr.Column(scale=0.125):
325
+ default_2 = gr.Button('🤗', variant='primary')
326
+ with gr.Column(scale=0.125):
327
+ default_3 = gr.Button('😡', variant='primary')
328
+ with gr.Column(scale=0.125):
329
+ default_4 = gr.Button('🧨', variant='primary')
330
 
331
  style_dropdown = gr.Dropdown(label='Style', choices=list(
332
  STYLE_CONFIG_LIST.keys()), value=list(STYLE_CONFIG_LIST.keys())[0])