jcg00v commited on
Commit
67037c0
1 Parent(s): bae53d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -43,8 +43,9 @@ def get_result_text_es_pt (list_entity, text, lang):
43
  word = (punc_in + word) if punc_in in ["¿", "¡"] else (word + punc_in)
44
  elif tag[-1] == "u":
45
  word = (punc_in + word.capitalize()) if punc_in in ["¿", "¡"] else (word.capitalize() + punc_in)
 
46
  if tag != "l":
47
- word = '<span style="font-weight:bold; color:rgb(142, 208, 129);">' + word + '</span>'
48
 
49
  if subword == True:
50
  result_words[-1] = word
@@ -90,7 +91,7 @@ def get_result_text_ca (list_entity, text):
90
  elif tag[-1] == "u":
91
  word = (punc_in + word.capitalize()) if punc_in in ["¿", "¡"] else (word.capitalize() + punc_in)
92
  if tag != "l":
93
- word = '<span style="font-weight:bold; color:rgb(142, 208, 129);">' + word + '</span>'
94
 
95
  if subword == True:
96
  result_words[-1] = word
 
43
  word = (punc_in + word) if punc_in in ["¿", "¡"] else (word + punc_in)
44
  elif tag[-1] == "u":
45
  word = (punc_in + word.capitalize()) if punc_in in ["¿", "¡"] else (word.capitalize() + punc_in)
46
+
47
  if tag != "l":
48
+ word = '<span style="font-weight:bold; color:rgb(142, 208, 129);">' + word + '</span>''
49
 
50
  if subword == True:
51
  result_words[-1] = word
 
91
  elif tag[-1] == "u":
92
  word = (punc_in + word.capitalize()) if punc_in in ["¿", "¡"] else (word.capitalize() + punc_in)
93
  if tag != "l":
94
+ word = '<span style="font-weight:bold; color:rgb(142, 208, 129);">' + word + '</span>'
95
 
96
  if subword == True:
97
  result_words[-1] = word