Nymbo commited on
Commit
20e04a8
·
verified ·
1 Parent(s): 42e6fbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -575,8 +575,8 @@ demo = gr.TabbedInterface(
575
  .gradio-container h1 {
576
  text-align: center;
577
  }
578
- /* Apply the subtitle only to the first (main) H1 to avoid duplicates on tab titles */
579
- .gradio-container h1:first-of-type::after {
580
  content: "Fetch Webpage | Search DuckDuckGo | Code Interpreter";
581
  display: block;
582
  font-size: 1rem;
@@ -584,6 +584,11 @@ demo = gr.TabbedInterface(
584
  opacity: 0.9;
585
  margin-top: 6px;
586
  }
 
 
 
 
 
587
  """,
588
  )
589
 
 
575
  .gradio-container h1 {
576
  text-align: center;
577
  }
578
+ /* Default: add subtitle under titles */
579
+ .gradio-container h1::after {
580
  content: "Fetch Webpage | Search DuckDuckGo | Code Interpreter";
581
  display: block;
582
  font-size: 1rem;
 
584
  opacity: 0.9;
585
  margin-top: 6px;
586
  }
587
+
588
+ /* But remove it inside tab panels so it doesn't duplicate under each tool title */
589
+ .gradio-container [role="tabpanel"] h1::after {
590
+ content: none !important;
591
+ }
592
  """,
593
  )
594