cools commited on
Commit
8a3c87a
·
1 Parent(s): 9e4d9c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -30,7 +30,15 @@ st.divider()
30
  index = pinecone.Index("scotus")
31
 
32
 
33
- search = st.text_input('Search', placeholders='First Amendment cannot protect libel')
 
 
 
 
 
 
 
 
34
 
35
 
36
 
 
30
  index = pinecone.Index("scotus")
31
 
32
 
33
+ search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
34
+
35
+ vector = model.encode([search]).tolist()
36
+ index.query(
37
+ vector=vector,
38
+ top_k=10,
39
+ include_values=False,
40
+ include_metadata=True,
41
+ )
42
 
43
 
44