christopher commited on
Commit
1bac24e
β€’
1 Parent(s): 6aca8f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -13,9 +13,9 @@ def search_chat_noir(key, search_query):
13
 
14
  def result_html(result):
15
  return (
16
- f"<div style=\"color:Blue;font-weight: bold\">{result.title.html}</div>"
17
  f"<a href=\"{result.target_uri}\" style=\"color:Green;\">{result.target_uri}</a>:<br>"
18
- f"<div>{result.snippet.html}</div><br>"
19
  )
20
 
21
  cola, colb, colc = st.columns([5,4,5])
@@ -40,7 +40,8 @@ if search_query or button_clicked:
40
 
41
  with st.expander("🐈 About", expanded=False):
42
  st.markdown(
43
- """
 
44
  ```
45
  @InProceedings{bevendorff:2018,
46
  address = {Berlin Heidelberg New York},
 
13
 
14
  def result_html(result):
15
  return (
16
+ f"<div style=\"color:#4863A0;font-weight: 500\">{(result.title.html).replace('<em>', '<b>').replace('</em>','</b>')}</div>"
17
  f"<a href=\"{result.target_uri}\" style=\"color:Green;\">{result.target_uri}</a>:<br>"
18
+ f"<div>{(result.snippet.html).replace('<em>', '<b>').replace('</em>','</b>')}</div><br>"
19
  )
20
 
21
  cola, colb, colc = st.columns([5,4,5])
 
40
 
41
  with st.expander("🐈 About", expanded=False):
42
  st.markdown(
43
+ """
44
+ This is a streamlit version of our [Chat Noit](https://www.chatnoir.eu/) search engine. Please cite:
45
  ```
46
  @InProceedings{bevendorff:2018,
47
  address = {Berlin Heidelberg New York},