Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,6 @@ def format_face_comparison_result(result, img1_path, img2_path):
|
|
| 141 |
def get_custom_css():
|
| 142 |
"""Return simplified CSS styling that works for both light and dark themes"""
|
| 143 |
return """
|
| 144 |
-
footer {visibility: hidden}
|
| 145 |
|
| 146 |
/* Center everything */
|
| 147 |
.container {
|
|
@@ -236,17 +235,7 @@ def get_custom_css():
|
|
| 236 |
.button-primary:hover {
|
| 237 |
background: var(--button-primary-background-fill-hover) !important;
|
| 238 |
}
|
| 239 |
-
|
| 240 |
-
/* Result container styling */
|
| 241 |
-
.result-container {
|
| 242 |
-
background: var(--background-fill-primary);
|
| 243 |
-
padding: 4px;
|
| 244 |
-
border-radius: 10px;
|
| 245 |
-
width: 100%;
|
| 246 |
-
text-align: center;
|
| 247 |
-
height: fit-content;
|
| 248 |
-
}
|
| 249 |
-
|
| 250 |
.result-content {
|
| 251 |
width: 100%;
|
| 252 |
}
|
|
@@ -275,27 +264,7 @@ def get_custom_css():
|
|
| 275 |
border-radius: 50%;
|
| 276 |
object-fit: cover;
|
| 277 |
}
|
| 278 |
-
|
| 279 |
-
.no-face {
|
| 280 |
-
width: 60px;
|
| 281 |
-
height: 60px;
|
| 282 |
-
background: var(--background-fill-primary);
|
| 283 |
-
border-radius: 50%;
|
| 284 |
-
display: flex;
|
| 285 |
-
align-items: center;
|
| 286 |
-
justify-content: center;
|
| 287 |
-
margin: 0 auto 10px;
|
| 288 |
-
color: var(--body-text-color);
|
| 289 |
-
font-size: 0.8em;
|
| 290 |
-
opacity: 0.7;
|
| 291 |
-
}
|
| 292 |
-
|
| 293 |
-
.face-source {
|
| 294 |
-
font-size: 0.9em !important;
|
| 295 |
-
color: var(--body-text-color);
|
| 296 |
-
opacity: 0.8;
|
| 297 |
-
}
|
| 298 |
-
|
| 299 |
/* Matching table - NEW STYLING */
|
| 300 |
.matches-table {
|
| 301 |
display: flex;
|
|
@@ -329,11 +298,6 @@ def get_custom_css():
|
|
| 329 |
color: var(--body-text-color);
|
| 330 |
}
|
| 331 |
|
| 332 |
-
.row-number {
|
| 333 |
-
font-weight: 600;
|
| 334 |
-
color: var(--body-text-color);
|
| 335 |
-
}
|
| 336 |
-
|
| 337 |
.face-cell {
|
| 338 |
vertical-align: middle;
|
| 339 |
}
|
|
@@ -492,6 +456,7 @@ with gr.Blocks(
|
|
| 492 |
if __name__ == "__main__":
|
| 493 |
demo.launch(
|
| 494 |
share=False,
|
|
|
|
| 495 |
server_name="0.0.0.0",
|
| 496 |
server_port=7860
|
| 497 |
)
|
|
|
|
| 141 |
def get_custom_css():
|
| 142 |
"""Return simplified CSS styling that works for both light and dark themes"""
|
| 143 |
return """
|
|
|
|
| 144 |
|
| 145 |
/* Center everything */
|
| 146 |
.container {
|
|
|
|
| 235 |
.button-primary:hover {
|
| 236 |
background: var(--button-primary-background-fill-hover) !important;
|
| 237 |
}
|
| 238 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
.result-content {
|
| 240 |
width: 100%;
|
| 241 |
}
|
|
|
|
| 264 |
border-radius: 50%;
|
| 265 |
object-fit: cover;
|
| 266 |
}
|
| 267 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
/* Matching table - NEW STYLING */
|
| 269 |
.matches-table {
|
| 270 |
display: flex;
|
|
|
|
| 298 |
color: var(--body-text-color);
|
| 299 |
}
|
| 300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
.face-cell {
|
| 302 |
vertical-align: middle;
|
| 303 |
}
|
|
|
|
| 456 |
if __name__ == "__main__":
|
| 457 |
demo.launch(
|
| 458 |
share=False,
|
| 459 |
+
show_api=False,
|
| 460 |
server_name="0.0.0.0",
|
| 461 |
server_port=7860
|
| 462 |
)
|