Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
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 |
-
|
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):
|