cakiki commited on
Commit
9eda8e8
1 Parent(s): 73415f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -30,10 +30,10 @@ def process_results(results, query):
30
  results_html = ""
31
  for result in results:
32
  text_html = result["text"]
33
- if query.startswith('"') and query.endswith('"'):
34
- text_html = mark_tokens_bold(text_html, query[1:-1].split(" "))
35
- else:
36
- text_html = mark_tokens_bold(text_html, query.split(" "))
37
  repository = result["repository"]
38
  path = result["path"]
39
  license = result["license"]
 
30
  results_html = ""
31
  for result in results:
32
  text_html = result["text"]
33
+ # if query.startswith('"') and query.endswith('"'):
34
+ # text_html = mark_tokens_bold(text_html, query[1:-1].split(" "))
35
+ # else:
36
+ # text_html = mark_tokens_bold(text_html, query.split(" "))
37
  repository = result["repository"]
38
  path = result["path"]
39
  license = result["license"]