Update app.py
Browse files
app.py
CHANGED
|
@@ -205,7 +205,7 @@ def get_custom_css():
|
|
| 205 |
.button-primary {
|
| 206 |
background: var(--button-primary-background-fill) !important;
|
| 207 |
border: none !important;
|
| 208 |
-
padding:
|
| 209 |
font-size: 1.2em !important;
|
| 210 |
font-weight: 600 !important;
|
| 211 |
color: var(--button-primary-text-color) !important;
|
|
@@ -420,34 +420,6 @@ def get_custom_css():
|
|
| 420 |
font-size: 1em !important;
|
| 421 |
}
|
| 422 |
|
| 423 |
-
/* Footer */
|
| 424 |
-
.footer {
|
| 425 |
-
text-align: center;
|
| 426 |
-
margin-top: 25px;
|
| 427 |
-
padding: 20px;
|
| 428 |
-
border-radius: 8px;
|
| 429 |
-
background: var(--background-fill-secondary);
|
| 430 |
-
font-size: 1em !important;
|
| 431 |
-
}
|
| 432 |
-
|
| 433 |
-
.footer p {
|
| 434 |
-
margin: 8px 0;
|
| 435 |
-
color: var(--body-text-color);
|
| 436 |
-
font-size: 1.05em !important;
|
| 437 |
-
}
|
| 438 |
-
|
| 439 |
-
.footer a {
|
| 440 |
-
color: var(--body-text-color);
|
| 441 |
-
text-decoration: none;
|
| 442 |
-
opacity: 0.8;
|
| 443 |
-
font-size: 1.05em !important;
|
| 444 |
-
}
|
| 445 |
-
|
| 446 |
-
.footer a:hover {
|
| 447 |
-
opacity: 1;
|
| 448 |
-
text-decoration: underline;
|
| 449 |
-
}
|
| 450 |
-
|
| 451 |
/* Section titles */
|
| 452 |
.section-title {
|
| 453 |
margin-bottom: 15px !important;
|
|
@@ -519,19 +491,6 @@ with gr.Blocks(
|
|
| 519 |
label="First Image",
|
| 520 |
show_download_button=False
|
| 521 |
)
|
| 522 |
-
|
| 523 |
-
# Second Image
|
| 524 |
-
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
| 525 |
-
im_match_in2 = gr.Image(
|
| 526 |
-
type='filepath',
|
| 527 |
-
height=380,
|
| 528 |
-
label="Second Image",
|
| 529 |
-
show_download_button=False
|
| 530 |
-
)
|
| 531 |
-
|
| 532 |
-
# Examples and Button
|
| 533 |
-
with gr.Accordion("Try Example Images", open=True):
|
| 534 |
-
with gr.Row():
|
| 535 |
gr.Examples(
|
| 536 |
examples=[
|
| 537 |
"assets/1.jpg",
|
|
@@ -542,6 +501,15 @@ with gr.Blocks(
|
|
| 542 |
inputs=im_match_in1,
|
| 543 |
label="First Image Examples"
|
| 544 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 545 |
gr.Examples(
|
| 546 |
examples=[
|
| 547 |
"assets/1-1.jpg",
|
|
@@ -577,5 +545,5 @@ if __name__ == "__main__":
|
|
| 577 |
share=False,
|
| 578 |
show_error=True,
|
| 579 |
server_name="0.0.0.0",
|
| 580 |
-
server_port=
|
| 581 |
)
|
|
|
|
| 205 |
.button-primary {
|
| 206 |
background: var(--button-primary-background-fill) !important;
|
| 207 |
border: none !important;
|
| 208 |
+
padding: 6px 12px !important;
|
| 209 |
font-size: 1.2em !important;
|
| 210 |
font-weight: 600 !important;
|
| 211 |
color: var(--button-primary-text-color) !important;
|
|
|
|
| 420 |
font-size: 1em !important;
|
| 421 |
}
|
| 422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
/* Section titles */
|
| 424 |
.section-title {
|
| 425 |
margin-bottom: 15px !important;
|
|
|
|
| 491 |
label="First Image",
|
| 492 |
show_download_button=False
|
| 493 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 494 |
gr.Examples(
|
| 495 |
examples=[
|
| 496 |
"assets/1.jpg",
|
|
|
|
| 501 |
inputs=im_match_in1,
|
| 502 |
label="First Image Examples"
|
| 503 |
)
|
| 504 |
+
|
| 505 |
+
# Second Image
|
| 506 |
+
with gr.Column(scale=1, elem_classes="upload-image-col"):
|
| 507 |
+
im_match_in2 = gr.Image(
|
| 508 |
+
type='filepath',
|
| 509 |
+
height=380,
|
| 510 |
+
label="Second Image",
|
| 511 |
+
show_download_button=False
|
| 512 |
+
)
|
| 513 |
gr.Examples(
|
| 514 |
examples=[
|
| 515 |
"assets/1-1.jpg",
|
|
|
|
| 545 |
share=False,
|
| 546 |
show_error=True,
|
| 547 |
server_name="0.0.0.0",
|
| 548 |
+
server_port=7861
|
| 549 |
)
|