abhi001vj commited on
Commit
fe3f712
·
1 Parent(s): 66e6f87

added the fix for pinecone db connection

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -23,6 +23,12 @@ import pinecone
23
  index_name = "qa_demo"
24
 
25
 
 
 
 
 
 
 
26
 
27
  preprocessor = PreProcessor(
28
  clean_empty_lines=True,
 
23
  index_name = "qa_demo"
24
 
25
 
26
+ # connect to pinecone environment
27
+ pinecone.init(
28
+ api_key=st.secrets["pinecone_apikey"],
29
+ # environment="us-west1-gcp"
30
+ )
31
+ index_name = "qa-demo"
32
 
33
  preprocessor = PreProcessor(
34
  clean_empty_lines=True,