Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ 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.
|
12 |
disnum = 3
|
13 |
if query:
|
14 |
docs = chdb.similarity_search_with_score(query)
|
|
|
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_input("Enter a query")
|
12 |
disnum = 3
|
13 |
if query:
|
14 |
docs = chdb.similarity_search_with_score(query)
|