lvwerra HF Staff commited on
Commit
cc567e0
·
1 Parent(s): 385bf5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -37,11 +37,10 @@ def process_results(results, highlight_terms):
37
  docid_html = str(result["docid"])
38
  results_html += """{}
39
  <p style='font-size:14px; font-family: Arial; color:#7978FF; text-align: left;'>Document ID: {}</p>
40
- <p style='font-size:12px; font-family: Arial; color:MediumAquaMarine'>Language: {}</p>
41
  <p style='font-family: Arial;'>{}</p>
42
  <br>
43
  """.format(
44
- meta_html, docid_html, result["lang"], tokens_html
45
  )
46
  return results_html + "<hr>"
47
 
 
37
  docid_html = str(result["docid"])
38
  results_html += """{}
39
  <p style='font-size:14px; font-family: Arial; color:#7978FF; text-align: left;'>Document ID: {}</p>
 
40
  <p style='font-family: Arial;'>{}</p>
41
  <br>
42
  """.format(
43
+ meta_html, docid_html, result["lang"], text_html
44
  )
45
  return results_html + "<hr>"
46