hysts HF Staff commited on
Commit
2db2246
·
1 Parent(s): 5f445d5
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -280,9 +280,9 @@ img#style-image {
280
  detect_button = gr.Button('Detect & Align Face')
281
  with gr.Column():
282
  with gr.Row():
283
- face_image = gr.Image(label='Aligned Face',
284
- type='numpy',
285
- interactive=False)
286
  with gr.Row():
287
  reconstruct_button = gr.Button('Reconstruct Face')
288
  with gr.Column():
@@ -368,9 +368,9 @@ img#style-image {
368
 
369
  detect_button.click(fn=app.detect_and_align_face,
370
  inputs=input_image,
371
- outputs=face_image)
372
  reconstruct_button.click(fn=app.reconstruct_face,
373
- inputs=face_image,
374
  outputs=[reconstructed_face, instyle])
375
  style_type.change(fn=update_slider,
376
  inputs=style_type,
 
280
  detect_button = gr.Button('Detect & Align Face')
281
  with gr.Column():
282
  with gr.Row():
283
+ aligned_face = gr.Image(label='Aligned Face',
284
+ type='numpy',
285
+ interactive=False)
286
  with gr.Row():
287
  reconstruct_button = gr.Button('Reconstruct Face')
288
  with gr.Column():
 
368
 
369
  detect_button.click(fn=app.detect_and_align_face,
370
  inputs=input_image,
371
+ outputs=aligned_face)
372
  reconstruct_button.click(fn=app.reconstruct_face,
373
+ inputs=aligned_face,
374
  outputs=[reconstructed_face, instyle])
375
  style_type.change(fn=update_slider,
376
  inputs=style_type,