Spaces:
Runtime error
Runtime error
arjunanand13
commited on
Commit
•
0588980
1
Parent(s):
c314932
Update app.py
Browse files
app.py
CHANGED
@@ -441,43 +441,26 @@ class VideoClassifier:
|
|
441 |
return "Model selected: " + model_name
|
442 |
|
443 |
def launch_interface(self):
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
padding: 10px;
|
465 |
-
border-radius: 5px;
|
466 |
-
margin-bottom: 10px;
|
467 |
-
}
|
468 |
-
|
469 |
-
.gradio-container .output-section {
|
470 |
-
border: 2px solid #ff5722; /* Orange border for output section */
|
471 |
-
padding: 10px;
|
472 |
-
border-radius: 5px;
|
473 |
-
margin-bottom: 10px;
|
474 |
-
}
|
475 |
-
|
476 |
-
/* Alignments for clean design */
|
477 |
-
.gradio-container .gr-row {
|
478 |
-
justify-content: center;
|
479 |
-
text-align: center;
|
480 |
-
}
|
481 |
"""
|
482 |
|
483 |
# First interface for model selection
|
@@ -521,7 +504,8 @@ class VideoClassifier:
|
|
521 |
# Tabbed interface with the custom CSS and highlighting
|
522 |
gr.TabbedInterface(
|
523 |
[gr.Row([gr.Column([interface_1], size=12), gr.Column([demo], size=12)])],
|
524 |
-
["Model Selection", "Video Classification"]
|
|
|
525 |
).launch(debug=True, share=True)
|
526 |
|
527 |
# css_code = """
|
|
|
441 |
return "Model selected: " + model_name
|
442 |
|
443 |
def launch_interface(self):
|
444 |
+
css_code = """
|
445 |
+
.gradio-container {
|
446 |
+
background-color: #d6cbd6;
|
447 |
+
}
|
448 |
+
|
449 |
+
/* Button styling for all buttons */
|
450 |
+
button {
|
451 |
+
background-color: #d6cbd6; /* Default color for all other buttons */
|
452 |
+
color: black;
|
453 |
+
border: 1px solid black;
|
454 |
+
padding: 10px;
|
455 |
+
margin-right: 10px;
|
456 |
+
font-size: 16px; /* Increase font size */
|
457 |
+
font-weight: bold; /* Make text bold */
|
458 |
+
}
|
459 |
+
|
460 |
+
/* Style for the second button */
|
461 |
+
button:nth-child(2) {
|
462 |
+
background-color: #927fc7; /* Red color for the second button */
|
463 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
"""
|
465 |
|
466 |
# First interface for model selection
|
|
|
504 |
# Tabbed interface with the custom CSS and highlighting
|
505 |
gr.TabbedInterface(
|
506 |
[gr.Row([gr.Column([interface_1], size=12), gr.Column([demo], size=12)])],
|
507 |
+
["Model Selection", "Video Classification"],
|
508 |
+
css=css_code,
|
509 |
).launch(debug=True, share=True)
|
510 |
|
511 |
# css_code = """
|