jamescalam commited on
Commit
814d271
1 Parent(s): 5fd4ea7

fix to connection logic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def init_db():
42
  def query(xq, top_k=10, include_values=True, filter=None):
43
  logging.info(f"Query to Pinecone with '{st.session_state.meta}'")
44
  attempt = 0
45
- while attempt > 3:
46
  try:
47
  xc = st.session_state.index.query(
48
  xq,
 
42
  def query(xq, top_k=10, include_values=True, filter=None):
43
  logging.info(f"Query to Pinecone with '{st.session_state.meta}'")
44
  attempt = 0
45
+ while attempt < 3:
46
  try:
47
  xc = st.session_state.index.query(
48
  xq,