Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ from langchain import OpenAI
|
|
23 |
|
24 |
|
25 |
|
26 |
-
|
|
|
27 |
|
28 |
OPENAI_API_KEY = os.getenv('OPEN_API_KEY')
|
29 |
GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')
|
@@ -31,6 +32,8 @@ openai.api_key = OPENAI_API_KEY
|
|
31 |
genai.configure(api_key=GOOGLE_API_KEY)
|
32 |
|
33 |
|
|
|
|
|
34 |
class OpenAIEmbeddings(Embeddings):
|
35 |
def embed_documents(self, texts):
|
36 |
response = openai.Embedding.create(
|
|
|
23 |
|
24 |
|
25 |
|
26 |
+
print(os.getenv('OPEN_API_KEY'),"1")
|
27 |
+
print(os.environ['OPEN_API_KEY'],"2")
|
28 |
|
29 |
OPENAI_API_KEY = os.getenv('OPEN_API_KEY')
|
30 |
GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')
|
|
|
32 |
genai.configure(api_key=GOOGLE_API_KEY)
|
33 |
|
34 |
|
35 |
+
|
36 |
+
|
37 |
class OpenAIEmbeddings(Embeddings):
|
38 |
def embed_documents(self, texts):
|
39 |
response = openai.Embedding.create(
|