arjunanand13 commited on
Commit
0588980
1 Parent(s): c314932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -38
app.py CHANGED
@@ -441,43 +441,26 @@ class VideoClassifier:
441
  return "Model selected: " + model_name
442
 
443
  def launch_interface(self):
444
- css_code = """
445
- /* Highlight the second tab in the tabbed interface */
446
- .gradio-container .tab-labels {
447
- background-color: #d9d9d9;
448
- }
449
-
450
- /* Highlight the second tab specifically */
451
- .gradio-container .tab-label:nth-child(2) {
452
- background-color: #ffcc00; /* Yellow color for the second tab */
453
- }
454
-
455
- /* Bounding box for inputs and outputs */
456
- .gradio-container .gr-box {
457
- border: 2px solid #333333; /* Dark border for inputs and outputs */
458
- padding: 10px;
459
- border-radius: 5px;
460
- }
461
-
462
- .gradio-container .input-section {
463
- border: 2px solid #009688; /* Teal border for input section */
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 = """