Update app.py
Browse files
app.py
CHANGED
@@ -458,9 +458,9 @@ with gr.Blocks(css=css) as demo:
|
|
458 |
with gr.Column(scale=1, min_width=400, elem_classes="block-background"):
|
459 |
compare_face_button = gr.Button("Compare Face", variant="primary", size="lg")
|
460 |
with gr.Row(elem_classes="face-row"):
|
461 |
-
face_output1 = gr.Image(value="icons/face.jpg", label="Face 1", scale=0, elem_classes="face-image")
|
462 |
-
compare_result = gr.Image(value="icons/blank.png", min_width=30, scale=0, show_download_button=False, show_label=False)
|
463 |
-
face_output2 = gr.Image(value="icons/face.jpg", label="Face 2", scale=0, elem_classes="face-image")
|
464 |
similarity_markdown = gr.Markdown("")
|
465 |
|
466 |
compare_face_button.click(compare_face, inputs=[compare_face_input1, compare_face_input2], outputs=[face_output1, face_output2, compare_result, similarity_markdown])
|
@@ -476,7 +476,7 @@ with gr.Blocks(css=css) as demo:
|
|
476 |
with gr.Column(scale=1, elem_classes="block-background"):
|
477 |
analyze_face_button = gr.Button("Analyze Face", variant="primary", size="lg")
|
478 |
with gr.Row(elem_classes="face-row"):
|
479 |
-
face_output = gr.Image(value="icons/face.jpg", label="Face", scale=0, elem_classes="face-image")
|
480 |
|
481 |
liveness_result = gr.Markdown("")
|
482 |
attribute_result = gr.Markdown("")
|
|
|
458 |
with gr.Column(scale=1, min_width=400, elem_classes="block-background"):
|
459 |
compare_face_button = gr.Button("Compare Face", variant="primary", size="lg")
|
460 |
with gr.Row(elem_classes="face-row"):
|
461 |
+
face_output1 = gr.Image(value="icons/face.jpg", label="Face 1", scale=0, elem_classes="face-image", show_share_button=False, show_download_button=False)
|
462 |
+
compare_result = gr.Image(value="icons/blank.png", min_width=30, scale=0, show_download_button=False, show_label=False, show_share_button=False)
|
463 |
+
face_output2 = gr.Image(value="icons/face.jpg", label="Face 2", scale=0, elem_classes="face-image", show_share_button=False, show_download_button=False)
|
464 |
similarity_markdown = gr.Markdown("")
|
465 |
|
466 |
compare_face_button.click(compare_face, inputs=[compare_face_input1, compare_face_input2], outputs=[face_output1, face_output2, compare_result, similarity_markdown])
|
|
|
476 |
with gr.Column(scale=1, elem_classes="block-background"):
|
477 |
analyze_face_button = gr.Button("Analyze Face", variant="primary", size="lg")
|
478 |
with gr.Row(elem_classes="face-row"):
|
479 |
+
face_output = gr.Image(value="icons/face.jpg", label="Face", scale=0, elem_classes="face-image", show_share_button=False, show_download_button=False)
|
480 |
|
481 |
liveness_result = gr.Markdown("")
|
482 |
attribute_result = gr.Markdown("")
|