Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|