gofeco commited on
Commit
824635b
1 Parent(s): 2b5bb1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ chdb = Chroma.from_documents(docs, embedding_function, collection_metadata={"hns
23
 
24
  text = st.text_area("enter text")
25
  if text:
26
- docs = chdb.similarity_search_with_score(query, k=3)
27
  docnum = len(docs)
28
  index = 0
29
  ret = ''
 
23
 
24
  text = st.text_area("enter text")
25
  if text:
26
+ docs = chdb.similarity_search_with_score(text, k=3)
27
  docnum = len(docs)
28
  index = 0
29
  ret = ''