cakiki commited on
Commit
fe930dc
1 Parent(s): a21f45a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def mark_tokens_bold(text, query):
20
  for token in tokens:
21
  pattern = re.escape(token) #r"\b" + re.escape(token) + r"\b"
22
  text = re.sub(pattern, "<span style='color: #e6b800;'><b>" + token + "</b></span>", text)
23
- return text
24
 
25
 
26
  def process_results(results, query):
 
20
  for token in tokens:
21
  pattern = re.escape(token) #r"\b" + re.escape(token) + r"\b"
22
  text = re.sub(pattern, "<span style='color: #e6b800;'><b>" + token + "</b></span>", text)
23
+ return text
24
 
25
 
26
  def process_results(results, query):