Spaces:
Runtime error
Runtime error
LVKinyanjui
commited on
Commit
•
0e17931
1
Parent(s):
833a1dc
Simplified checking text area populated code
Browse files
app.py
CHANGED
@@ -31,12 +31,9 @@ if file is not None:
|
|
31 |
st.write("Succesfully uploaded document to database.")
|
32 |
|
33 |
# QUERY AREA
|
34 |
-
query = st.text_input(
|
35 |
-
"Enter your query",
|
36 |
-
# disabled=st.session_state.disabled,
|
37 |
-
)
|
38 |
|
39 |
-
if query
|
40 |
query_results = collection.query(
|
41 |
query_texts=[query, ],
|
42 |
n_results=5,
|
|
|
31 |
st.write("Succesfully uploaded document to database.")
|
32 |
|
33 |
# QUERY AREA
|
34 |
+
query = st.text_input("Enter your query")
|
|
|
|
|
|
|
35 |
|
36 |
+
if query:
|
37 |
query_results = collection.query(
|
38 |
query_texts=[query, ],
|
39 |
n_results=5,
|