Update chain.py
Browse files
chain.py
CHANGED
|
@@ -11,8 +11,9 @@ from langchain import PromptTemplate
|
|
| 11 |
|
| 12 |
|
| 13 |
with open("credentials.json", "r") as file:
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
login(token = access_token_read)
|
| 18 |
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
with open("credentials.json", "r") as file:
|
| 14 |
+
credentials = json.load(file)
|
| 15 |
+
access_token_read = credentials["access_token_read"]
|
| 16 |
+
openai.api_key = credentials["openai_api_key"]
|
| 17 |
|
| 18 |
login(token = access_token_read)
|
| 19 |
|