abhisheksasidharanr commited on
Commit
c16406d
1 Parent(s): 0870163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ import os
17
  import string
18
  import random
19
 
20
- pc = Pinecone( api_key="5c328309-60d9-41f9-9731-da1c0af81ff0")
21
  index = pc.Index('example-index')
22
  model = SentenceTransformer('all-mpnet-base-v2')
23
 
@@ -99,7 +99,7 @@ def getFinalResponse(user_question):
99
  ]
100
  )
101
  groq_chat = ChatGroq(
102
- groq_api_key="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",
103
  model_name="llama3-8b-8192"
104
  )
105
  conversation = LLMChain(
 
17
  import string
18
  import random
19
 
20
+ pc = Pinecone( api_key=st.secrets["PINE_CONE_KEY"])
21
  index = pc.Index('example-index')
22
  model = SentenceTransformer('all-mpnet-base-v2')
23
 
 
99
  ]
100
  )
101
  groq_chat = ChatGroq(
102
+ groq_api_key=st.secrets["GROQ_API_KEY"],
103
  model_name="llama3-8b-8192"
104
  )
105
  conversation = LLMChain(