Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,6 +64,16 @@ NOTICE = """
|
|
| 64 |
</div>
|
| 65 |
"""
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
MODEL_INFO = """
|
| 68 |
<div class="info-grid">
|
| 69 |
<div class="info-item">
|
|
@@ -394,6 +404,30 @@ body, .gradio-container {
|
|
| 394 |
letter-spacing: 0.1em;
|
| 395 |
}
|
| 396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
/* ββ Panel box β applied via elem_classes ββ */
|
| 398 |
.tribe-box {
|
| 399 |
background: #0d1120 !important;
|
|
@@ -698,6 +732,7 @@ with gr.Blocks() as demo:
|
|
| 698 |
|
| 699 |
gr.HTML(HEADER)
|
| 700 |
gr.HTML(NOTICE)
|
|
|
|
| 701 |
|
| 702 |
with gr.Accordion("About the model", open=False):
|
| 703 |
gr.HTML(MODEL_INFO)
|
|
|
|
| 64 |
</div>
|
| 65 |
"""
|
| 66 |
|
| 67 |
+
WARNING_LONG = """
|
| 68 |
+
<div class="tribe-warning">
|
| 69 |
+
<span class="warning-label">β Processing time</span>
|
| 70 |
+
Long videos can take significantly longer to process. The sample Sintel trailer
|
| 71 |
+
(~52 s) may take <strong>8β10 minutes</strong> on the first run due to model
|
| 72 |
+
warm-up and WhisperX initialization. Progress is shown below the Run button
|
| 73 |
+
while inference is running.
|
| 74 |
+
</div>
|
| 75 |
+
"""
|
| 76 |
+
|
| 77 |
MODEL_INFO = """
|
| 78 |
<div class="info-grid">
|
| 79 |
<div class="info-item">
|
|
|
|
| 404 |
letter-spacing: 0.1em;
|
| 405 |
}
|
| 406 |
|
| 407 |
+
/* ββ Warning ββ */
|
| 408 |
+
.tribe-warning {
|
| 409 |
+
background: #141007;
|
| 410 |
+
border: 1px solid #3a2a00;
|
| 411 |
+
border-left: 3px solid #c88a00;
|
| 412 |
+
border-radius: 4px;
|
| 413 |
+
padding: 11px 16px;
|
| 414 |
+
font-size: 0.79rem;
|
| 415 |
+
color: #9a7a30;
|
| 416 |
+
line-height: 1.6;
|
| 417 |
+
margin: 10px 0 0;
|
| 418 |
+
}
|
| 419 |
+
.tribe-warning strong {
|
| 420 |
+
color: #c8a040;
|
| 421 |
+
font-weight: 600;
|
| 422 |
+
}
|
| 423 |
+
.warning-label {
|
| 424 |
+
font-weight: 700;
|
| 425 |
+
color: #c88a00;
|
| 426 |
+
margin-right: 8px;
|
| 427 |
+
font-size: 0.69rem;
|
| 428 |
+
letter-spacing: 0.05em;
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
/* ββ Panel box β applied via elem_classes ββ */
|
| 432 |
.tribe-box {
|
| 433 |
background: #0d1120 !important;
|
|
|
|
| 732 |
|
| 733 |
gr.HTML(HEADER)
|
| 734 |
gr.HTML(NOTICE)
|
| 735 |
+
gr.HTML(WARNING_LONG)
|
| 736 |
|
| 737 |
with gr.Accordion("About the model", open=False):
|
| 738 |
gr.HTML(MODEL_INFO)
|