kovacsvi commited on
Commit
e925973
·
1 Parent(s): 6ead689

added cssfor bold tab titles

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -18,6 +18,13 @@ from interfaces.ontolisst import demo as ontolisst_demo
18
  from interfaces.emotion9 import demo as e9_demo
19
  from utils import download_hf_models
20
 
 
 
 
 
 
 
 
21
  with gr.Blocks() as demo:
22
  gr.Markdown(
23
  f"""
@@ -40,6 +47,7 @@ with gr.Blocks() as demo:
40
  gr.TabbedInterface(
41
  interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
42
  tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"],
 
43
  )
44
 
45
  if __name__ == "__main__":
@@ -47,4 +55,4 @@ if __name__ == "__main__":
47
  download_spacy_models()
48
  demo.launch()
49
 
50
- # TODO: add all languages & domains
 
18
  from interfaces.emotion9 import demo as e9_demo
19
  from utils import download_hf_models
20
 
21
+ css = """
22
+ /* Make only the active tab bold */
23
+ button[data-testid="block-tabs-tab"][aria-selected="true"] {
24
+ font-weight: bold;
25
+ }
26
+ """
27
+
28
  with gr.Blocks() as demo:
29
  gr.Markdown(
30
  f"""
 
47
  gr.TabbedInterface(
48
  interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
49
  tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"],
50
+ css=css
51
  )
52
 
53
  if __name__ == "__main__":
 
55
  download_spacy_models()
56
  demo.launch()
57
 
58
+ # TODO: add all languages & domains