gofeco commited on
Commit
638c04e
1 Parent(s): 57de215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,9 +8,9 @@ import streamlit as st
8
  embedding_function = SentenceTransformerEmbeddings(model_name="all-mpnet-base-v2")
9
  chdb = Chroma(persist_directory="./chroma_db_info", embedding_function=embedding_function)
10
 
11
- query = st.text_area("enter text")
12
  disnum = 3
13
- if text:
14
  docs = chdb.similarity_search_with_score(query)
15
  docnum = len(docs)
16
  index = 0
 
8
  embedding_function = SentenceTransformerEmbeddings(model_name="all-mpnet-base-v2")
9
  chdb = Chroma(persist_directory="./chroma_db_info", embedding_function=embedding_function)
10
 
11
+ query = st.text_area("Enter a query")
12
  disnum = 3
13
+ if query:
14
  docs = chdb.similarity_search_with_score(query)
15
  docnum = len(docs)
16
  index = 0