LordFarquaad42 commited on
Commit
0c9973b
1 Parent(s): 7f8f7cd

added button

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -19,14 +19,15 @@ st.write("Data Avaliable: ", DATA_AVAL)
19
  user_question: str = st.text_area("Enter your groovy questions here")
20
  access_key: str = st.text_input("Enter your gpt key here", type="password")
21
 
22
- if (user_question == ""):
23
- st.stop()
24
- else:
25
- st.header("Results")
26
- # Perform the Chromadb query.
27
- results = schemer.query(
28
- query_texts=[user_question],
29
- n_results=10,
30
- include = ['documents']
31
- )
32
- st.write(results)
 
 
19
  user_question: str = st.text_area("Enter your groovy questions here")
20
  access_key: str = st.text_input("Enter your gpt key here", type="password")
21
 
22
+ if st.button('Query Database'):
23
+ if (user_question == ""):
24
+ st.stop()
25
+ else:
26
+ st.header("Results")
27
+ # Perform the Chromadb query.
28
+ results = schemer.query(
29
+ query_texts=[user_question],
30
+ n_results=10,
31
+ include = ['documents']
32
+ )
33
+ st.write(results)