fffiloni commited on
Commit
e97cb14
1 Parent(s): eca6ff2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -83,8 +83,9 @@ with gr.Blocks() as demo:
83
  label="Eyebrow", info='''Eyebrow: Adjusts the height and shape of the eyebrows''', value=0,
84
  minimum=-10, maximum=15
85
  )
86
- wink = gr.Number(
87
- label="Wink", info='''Wink: Controls the degree of one eye closing''', value=0
 
88
  )
89
  with gr.Row():
90
  pupil_x = gr.Slider(
@@ -133,6 +134,15 @@ with gr.Blocks() as demo:
133
  submit_btn = gr.Button("Submit")
134
  with gr.Column():
135
  result_image = gr.Image()
 
 
 
 
 
 
 
 
 
136
 
137
  inputs = [image, rotate_pitch, rotate_yaw, rotate_roll, blink, eyebrow, wink, pupil_x, pupil_y, aaa, eee, woo, smile, src_ratio, sample_ratio, crop_factor, output_format, output_quality]
138
  outputs = [result_image]
 
83
  label="Eyebrow", info='''Eyebrow: Adjusts the height and shape of the eyebrows''', value=0,
84
  minimum=-10, maximum=15
85
  )
86
+ wink = gr.Slider(
87
+ label="Wink", info='''Wink: Controls the degree of one eye closing''', value=0,
88
+ minimum=0, maximum=25
89
  )
90
  with gr.Row():
91
  pupil_x = gr.Slider(
 
134
  submit_btn = gr.Button("Submit")
135
  with gr.Column():
136
  result_image = gr.Image()
137
+ gr.HTML("""
138
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
139
+ <p style="display: flex;gap: 6px;">
140
+ <a href="https://huggingface.co/spaces/fffiloni/expression-editor?duplicate=true">
141
+ <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg" alt="Duplicate this Space">
142
+ </a> to skip the queue and enjoy faster inference on the GPU of your choice
143
+ </p>
144
+ </div>
145
+ """)
146
 
147
  inputs = [image, rotate_pitch, rotate_yaw, rotate_roll, blink, eyebrow, wink, pupil_x, pupil_y, aaa, eee, woo, smile, src_ratio, sample_ratio, crop_factor, output_format, output_quality]
148
  outputs = [result_image]