Update app.py
Browse files
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("
|
12 |
disnum = 3
|
13 |
-
if
|
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
|