Update app.py
Browse files
app.py
CHANGED
|
@@ -309,7 +309,7 @@ def get_custom_css():
|
|
| 309 |
.button-primary {
|
| 310 |
background: var(--button-primary-background-fill) !important;
|
| 311 |
border: none !important;
|
| 312 |
-
padding:
|
| 313 |
font-size: 1.2em !important;
|
| 314 |
font-weight: 600 !important;
|
| 315 |
color: var(--button-primary-text-color) !important;
|
|
@@ -704,19 +704,6 @@ with gr.Blocks(
|
|
| 704 |
label="First Image",
|
| 705 |
show_download_button=False
|
| 706 |
)
|
| 707 |
-
|
| 708 |
-
# Second Image
|
| 709 |
-
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
| 710 |
-
im_match_in2 = gr.Image(
|
| 711 |
-
type='filepath',
|
| 712 |
-
height=380,
|
| 713 |
-
label="Second Image",
|
| 714 |
-
show_download_button=False
|
| 715 |
-
)
|
| 716 |
-
|
| 717 |
-
# Examples and Button
|
| 718 |
-
with gr.Accordion("Try Example Images", open=True):
|
| 719 |
-
with gr.Row():
|
| 720 |
gr.Examples(
|
| 721 |
examples=[
|
| 722 |
"assets/1.jpg",
|
|
@@ -727,6 +714,15 @@ with gr.Blocks(
|
|
| 727 |
inputs=im_match_in1,
|
| 728 |
label="First Image Examples"
|
| 729 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 730 |
gr.Examples(
|
| 731 |
examples=[
|
| 732 |
"assets/1-1.jpg",
|
|
@@ -760,9 +756,9 @@ with gr.Blocks(
|
|
| 760 |
|
| 761 |
# Visitor Counter
|
| 762 |
gr.HTML("""
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
""")
|
| 767 |
|
| 768 |
# Footer
|
|
|
|
| 309 |
.button-primary {
|
| 310 |
background: var(--button-primary-background-fill) !important;
|
| 311 |
border: none !important;
|
| 312 |
+
padding: 6px 12px !important;
|
| 313 |
font-size: 1.2em !important;
|
| 314 |
font-weight: 600 !important;
|
| 315 |
color: var(--button-primary-text-color) !important;
|
|
|
|
| 704 |
label="First Image",
|
| 705 |
show_download_button=False
|
| 706 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 707 |
gr.Examples(
|
| 708 |
examples=[
|
| 709 |
"assets/1.jpg",
|
|
|
|
| 714 |
inputs=im_match_in1,
|
| 715 |
label="First Image Examples"
|
| 716 |
)
|
| 717 |
+
|
| 718 |
+
# Second Image
|
| 719 |
+
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
| 720 |
+
im_match_in2 = gr.Image(
|
| 721 |
+
type='filepath',
|
| 722 |
+
height=380,
|
| 723 |
+
label="Second Image",
|
| 724 |
+
show_download_button=False
|
| 725 |
+
)
|
| 726 |
gr.Examples(
|
| 727 |
examples=[
|
| 728 |
"assets/1-1.jpg",
|
|
|
|
| 756 |
|
| 757 |
# Visitor Counter
|
| 758 |
gr.HTML("""
|
| 759 |
+
<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FMiniAiLive%2FFaceRecognition-LivenessDetection-Demo">
|
| 760 |
+
<img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FMiniAiLive%2FFaceRecognition-LivenessDetection-Demo&label=VISITORS&labelColor=%2337d67a&countColor=%23ff8a65&style=plastic&labelStyle=none" />
|
| 761 |
+
</a>
|
| 762 |
""")
|
| 763 |
|
| 764 |
# Footer
|