shreyasiv commited on
Commit
2d6b1ab
·
1 Parent(s): 71f24d2

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -14,11 +14,11 @@ st.image(logo_image, width=200)
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
  PINECONE_API_KEY = os.getenv("PINECONE_API_KEY")
16
 
17
- OPENAI_API_KEY= OPENAI_API_KEY
18
 
19
  model = SentenceTransformer('all-MiniLM-L6-v2')
20
 
21
- pinecone.init(api_key=PINECONE_API_KEY, environment='asia-southeast1-gcp-free')
22
  index = pinecone.Index('langchain-chatbot')
23
 
24
  def find_match(input):
 
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
  PINECONE_API_KEY = os.getenv("PINECONE_API_KEY")
16
 
17
+ openai.api_key = OPENAI_API_KEY
18
 
19
  model = SentenceTransformer('all-MiniLM-L6-v2')
20
 
21
+ pinecone.init(api_key = PINECONE_API_KEY, environment='asia-southeast1-gcp-free')
22
  index = pinecone.Index('langchain-chatbot')
23
 
24
  def find_match(input):