new app
Browse files
app.py
CHANGED
|
@@ -1433,6 +1433,12 @@ div[data-testid="video"] button span {
|
|
| 1433 |
div[data-testid="video"] button::before {
|
| 1434 |
display: none !important;
|
| 1435 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1436 |
"""
|
| 1437 |
|
| 1438 |
# =========================================================
|
|
@@ -1515,7 +1521,8 @@ with gr.Blocks(
|
|
| 1515 |
|
| 1516 |
video_input = gr.Video(
|
| 1517 |
label="Video Input",
|
| 1518 |
-
height=360
|
|
|
|
| 1519 |
)
|
| 1520 |
|
| 1521 |
predict_btn = gr.Button(
|
|
@@ -1537,7 +1544,8 @@ with gr.Blocks(
|
|
| 1537 |
|
| 1538 |
result_output = gr.Label(
|
| 1539 |
label="Emotion Probability Distribution",
|
| 1540 |
-
num_top_classes=4
|
|
|
|
| 1541 |
)
|
| 1542 |
|
| 1543 |
transcription_output = gr.Textbox(
|
|
|
|
| 1433 |
div[data-testid="video"] button::before {
|
| 1434 |
display: none !important;
|
| 1435 |
}
|
| 1436 |
+
|
| 1437 |
+
/* black labels */
|
| 1438 |
+
.black-label label,
|
| 1439 |
+
.black-label span {
|
| 1440 |
+
color: black !important;
|
| 1441 |
+
}
|
| 1442 |
"""
|
| 1443 |
|
| 1444 |
# =========================================================
|
|
|
|
| 1521 |
|
| 1522 |
video_input = gr.Video(
|
| 1523 |
label="Video Input",
|
| 1524 |
+
height=360,
|
| 1525 |
+
elem_classes="black-label"
|
| 1526 |
)
|
| 1527 |
|
| 1528 |
predict_btn = gr.Button(
|
|
|
|
| 1544 |
|
| 1545 |
result_output = gr.Label(
|
| 1546 |
label="Emotion Probability Distribution",
|
| 1547 |
+
num_top_classes=4,
|
| 1548 |
+
elem_classes="black-label"
|
| 1549 |
)
|
| 1550 |
|
| 1551 |
transcription_output = gr.Textbox(
|