cools commited on
Commit
e0765b5
·
1 Parent(s): d7cbc77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -43,7 +43,12 @@ search = st.text_input('Search', placeholder='First Amendment cannot protect lib
43
  if search != "":
44
  res = search_index(query=search)
45
  for m in res:
46
- st.markdown("- " + m['metadata']['Text'])
 
 
 
 
 
47
  # st.write(m['metadata']['Text'])
48
 
49
 
 
43
  if search != "":
44
  res = search_index(query=search)
45
  for m in res:
46
+ text = m['metadata']['Text']
47
+ if 'Name' in m['metadata']:
48
+ name = m['metadata']['Name']
49
+ else:
50
+ name = ""
51
+ st.markdown("- " + text + '(' + name + ')')
52
  # st.write(m['metadata']['Text'])
53
 
54