Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,15 @@ def search_index(query):
|
|
| 29 |
print(index.query(vector=vector,top_k=10,include_values=False,include_metadata=True).to_dict())
|
| 30 |
return index.query(vector=vector,top_k=10,include_values=False,include_metadata=True).to_dict()['matches']
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
|
| 35 |
if search != "":
|
|
|
|
| 29 |
print(index.query(vector=vector,top_k=10,include_values=False,include_metadata=True).to_dict())
|
| 30 |
return index.query(vector=vector,top_k=10,include_values=False,include_metadata=True).to_dict()['matches']
|
| 31 |
|
| 32 |
+
|
| 33 |
+
st.markdown('''
|
| 34 |
+
<style>
|
| 35 |
+
[data-testid="stMarkdownContainer"] ul{
|
| 36 |
+
list-style-position: inside;
|
| 37 |
+
}
|
| 38 |
+
</style>
|
| 39 |
+
''', unsafe_allow_html=True)
|
| 40 |
+
|
| 41 |
|
| 42 |
search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
|
| 43 |
if search != "":
|