jcg00v commited on
Commit
bae53d6
1 Parent(s): dff0a3a

Update app.py

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