Spaces:
Running
Running
Rename
Browse files
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 |
-
|
| 284 |
-
|
| 285 |
-
|
| 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=
|
| 372 |
reconstruct_button.click(fn=app.reconstruct_face,
|
| 373 |
-
inputs=
|
| 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,
|