Update app.py
Browse files
app.py
CHANGED
|
@@ -413,6 +413,16 @@ with gr.Blocks(
|
|
| 413 |
label="First Image",
|
| 414 |
show_download_button=False
|
| 415 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
# Second Image
|
| 418 |
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
|
@@ -422,6 +432,17 @@ with gr.Blocks(
|
|
| 422 |
label="Second Image",
|
| 423 |
show_download_button=False
|
| 424 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
|
| 426 |
btn_f_match = gr.Button(
|
| 427 |
"Compare Faces 🚀",
|
|
|
|
| 413 |
label="First Image",
|
| 414 |
show_download_button=False
|
| 415 |
)
|
| 416 |
+
gr.Examples(
|
| 417 |
+
examples=[
|
| 418 |
+
"assets/1.jpg",
|
| 419 |
+
"assets/2.jpg",
|
| 420 |
+
"assets/3.jpg",
|
| 421 |
+
"assets/4.jpg",
|
| 422 |
+
],
|
| 423 |
+
inputs=im_match_in1,
|
| 424 |
+
label="First Image Examples",
|
| 425 |
+
)
|
| 426 |
|
| 427 |
# Second Image
|
| 428 |
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
|
|
|
| 432 |
label="Second Image",
|
| 433 |
show_download_button=False
|
| 434 |
)
|
| 435 |
+
gr.Examples(
|
| 436 |
+
examples=[
|
| 437 |
+
"assets/1-1.jpg",
|
| 438 |
+
"assets/2-1.jpg",
|
| 439 |
+
"assets/3-1.jpg",
|
| 440 |
+
"assets/4-1.jpg",
|
| 441 |
+
],
|
| 442 |
+
inputs=im_match_in2,
|
| 443 |
+
label="Second Image Examples",
|
| 444 |
+
examples_per_page=4
|
| 445 |
+
)
|
| 446 |
|
| 447 |
btn_f_match = gr.Button(
|
| 448 |
"Compare Faces 🚀",
|