Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -285,15 +285,13 @@ body, .gradio-container {
|
|
| 285 |
padding: 0 !important;
|
| 286 |
}
|
| 287 |
|
| 288 |
-
/* The actual pill —
|
| 289 |
#model-bar {
|
| 290 |
background: linear-gradient(90deg, #14336b, #0f2a57) !important;
|
| 291 |
border: 1px solid #2f5aa8 !important;
|
| 292 |
border-radius: 999px !important;
|
| 293 |
-
padding:
|
| 294 |
-
width:
|
| 295 |
-
min-width: 260px !important;
|
| 296 |
-
max-width: 320px !important;
|
| 297 |
display: inline-flex !important;
|
| 298 |
align-items: center !important;
|
| 299 |
box-shadow: 0 0 0 1px rgba(59,130,246,0.15) inset;
|
|
@@ -308,6 +306,7 @@ body, .gradio-container {
|
|
| 308 |
background: transparent !important;
|
| 309 |
border: none !important;
|
| 310 |
box-shadow: none !important;
|
|
|
|
| 311 |
}
|
| 312 |
#model-bar select, #model-bar input {
|
| 313 |
background: transparent !important;
|
|
@@ -316,12 +315,19 @@ body, .gradio-container {
|
|
| 316 |
font-size: 13px !important;
|
| 317 |
border: none !important;
|
| 318 |
white-space: nowrap !important;
|
| 319 |
-
|
| 320 |
-
text-overflow: unset !important;
|
| 321 |
-
min-width: 160px !important;
|
| 322 |
}
|
| 323 |
|
| 324 |
.section-title { font-size: 22px; font-weight: 700; color: #f8fafc; margin: 8px 0 14px 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 325 |
.card-subtext { color: #94a3b8; font-size: 14px; margin-top: 8px; line-height: 1.7; }
|
| 326 |
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; margin-bottom: 6px; }
|
| 327 |
.summary-card { background: linear-gradient(180deg, #141d2d 0%, #0f172a 100%); border: 1px solid #243042; border-radius: 16px; padding: 16px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
|
|
@@ -383,10 +389,10 @@ with gr.Blocks(css=CUSTOM_CSS) as demo:
|
|
| 383 |
show_label=True,
|
| 384 |
container=False,
|
| 385 |
scale=0,
|
| 386 |
-
min_width=
|
| 387 |
)
|
| 388 |
|
| 389 |
-
with gr.Row(equal_height=
|
| 390 |
with gr.Column(scale=4):
|
| 391 |
gr.HTML('<div class="section-title">📤 Input Panel</div>')
|
| 392 |
|
|
|
|
| 285 |
padding: 0 !important;
|
| 286 |
}
|
| 287 |
|
| 288 |
+
/* The actual pill — sized to fit its content, not clipped */
|
| 289 |
#model-bar {
|
| 290 |
background: linear-gradient(90deg, #14336b, #0f2a57) !important;
|
| 291 |
border: 1px solid #2f5aa8 !important;
|
| 292 |
border-radius: 999px !important;
|
| 293 |
+
padding: 8px 20px !important;
|
| 294 |
+
width: fit-content !important;
|
|
|
|
|
|
|
| 295 |
display: inline-flex !important;
|
| 296 |
align-items: center !important;
|
| 297 |
box-shadow: 0 0 0 1px rgba(59,130,246,0.15) inset;
|
|
|
|
| 306 |
background: transparent !important;
|
| 307 |
border: none !important;
|
| 308 |
box-shadow: none !important;
|
| 309 |
+
width: fit-content !important;
|
| 310 |
}
|
| 311 |
#model-bar select, #model-bar input {
|
| 312 |
background: transparent !important;
|
|
|
|
| 315 |
font-size: 13px !important;
|
| 316 |
border: none !important;
|
| 317 |
white-space: nowrap !important;
|
| 318 |
+
width: auto !important;
|
|
|
|
|
|
|
| 319 |
}
|
| 320 |
|
| 321 |
.section-title { font-size: 22px; font-weight: 700; color: #f8fafc; margin: 8px 0 14px 0; }
|
| 322 |
+
|
| 323 |
+
/* Force Input Panel and Detection Output columns to start flush at the top */
|
| 324 |
+
#main-panels-row {
|
| 325 |
+
align-items: flex-start !important;
|
| 326 |
+
}
|
| 327 |
+
#main-panels-row > * {
|
| 328 |
+
margin-top: 0 !important;
|
| 329 |
+
padding-top: 0 !important;
|
| 330 |
+
}
|
| 331 |
.card-subtext { color: #94a3b8; font-size: 14px; margin-top: 8px; line-height: 1.7; }
|
| 332 |
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; margin-bottom: 6px; }
|
| 333 |
.summary-card { background: linear-gradient(180deg, #141d2d 0%, #0f172a 100%); border: 1px solid #243042; border-radius: 16px; padding: 16px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
|
|
|
|
| 389 |
show_label=True,
|
| 390 |
container=False,
|
| 391 |
scale=0,
|
| 392 |
+
min_width=0,
|
| 393 |
)
|
| 394 |
|
| 395 |
+
with gr.Row(equal_height=False, elem_id="main-panels-row"):
|
| 396 |
with gr.Column(scale=4):
|
| 397 |
gr.HTML('<div class="section-title">📤 Input Panel</div>')
|
| 398 |
|