fabiod20 commited on
Commit
5bb309f
1 Parent(s): acb44b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ background_colors_entity_tag = {
24
  }
25
 
26
  css = {
27
- 'entity_tag': 'color:#fff;background: #xxxxxx; font-size: 0.8em; font-weight: bold; line-height: 2.5; border-radius: 0.35em; text-transform: uppercase; vertical-align: middle; margin-left: 0.5em;'
28
  }
29
  entity_list = "<span style='"
30
  entity_list += f"{css['entity_tag'].replace('#xxxxxx',background_colors_entity_tag['RIC'])};padding:0.5em;"
@@ -137,7 +137,7 @@ interface = gr.Interface(
137
  allow_screenshot=False,
138
  allow_flagging=False,
139
  fn=ner,
140
- inputs=gr.inputs.Textbox(placeholder="Insert an Italian judgments", lines=10),
141
  outputs=gr.outputs.HTML(),
142
  examples=examples
143
  )
 
24
  }
25
 
26
  css = {
27
+ 'entity_tag': 'color:#000;background: #xxxxxx; font-size: 0.8em; font-weight: bold; line-height: 2.5; border-radius: 0.35em; text-transform: uppercase; vertical-align: middle; margin-left: 0.5em;'
28
  }
29
  entity_list = "<span style='"
30
  entity_list += f"{css['entity_tag'].replace('#xxxxxx',background_colors_entity_tag['RIC'])};padding:0.5em;"
 
137
  allow_screenshot=False,
138
  allow_flagging=False,
139
  fn=ner,
140
+ inputs=gr.inputs.Textbox(placeholder="Insert an Italian judgments (you can click on an example below)", lines=10),
141
  outputs=gr.outputs.HTML(),
142
  examples=examples
143
  )