chainyo commited on
Commit
70c28bf
·
1 Parent(s): 66235a3

fix search function

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -58,7 +58,7 @@ with st.spinner("Loading Embedding Model..."):
58
 
59
  if st.button("Search"):
60
  with st.spinner("Searching..."):
61
- results = st.session_state.embeds_handler.search(text)
62
 
63
  for res in results["matches"]:
64
  st.write(f"{res['id']} - confidence: {res['score']:.2f}")
 
58
 
59
  if st.button("Search"):
60
  with st.spinner("Searching..."):
61
+ results = search(text)
62
 
63
  for res in results["matches"]:
64
  st.write(f"{res['id']} - confidence: {res['score']:.2f}")