cools commited on
Commit
d551f1b
·
1 Parent(s): b10dd8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ index = pinecone.Index("scotus")
32
  @st.cache_data
33
  def search_index(query):
34
  vector = model.encode([query]).tolist()
35
- results = index.query(vector=vector,top_k=10,include_values=False,include_metadata=True)
36
- return results
37
 
38
  search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
39
  if search != "":
 
32
  @st.cache_data
33
  def search_index(query):
34
  vector = model.encode([query]).tolist()
35
+ st.write(index.query(vector=vector,top_k=10,include_values=False,include_metadata=True))
36
+
37
 
38
  search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
39
  if search != "":