Kushwanth Chowday Kandala commited on
Commit
f76455a
1 Parent(s): 3d67d69

AttributeError: 'PineconeGRPC' object has no attribute 'query'

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def get_pinecone_semantic_index(pinecone):
69
  spec=ServerlessSpec( cloud='gcp', region='us-central1' )
70
  )
71
  # now connect to index
72
- index = PineconeGRPC(index_name)
73
  st.text(f"Succesfully connected to the pinecone index")
74
  return index
75
 
 
69
  spec=ServerlessSpec( cloud='gcp', region='us-central1' )
70
  )
71
  # now connect to index
72
+ index = pinecone.Index(index_name)
73
  st.text(f"Succesfully connected to the pinecone index")
74
  return index
75