Spaces:
Sleeping
Sleeping
Removed reference to .env
Browse files
chat.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from time import time, sleep
|
2 |
import datetime
|
3 |
-
import dotenv
|
4 |
-
import os
|
5 |
import openai
|
6 |
import json
|
7 |
import pinecone
|
@@ -11,7 +11,7 @@ import re
|
|
11 |
from langchain.memory import VectorStoreRetrieverMemory
|
12 |
|
13 |
## Read the environment variables
|
14 |
-
dotenv.load_dotenv('.env')
|
15 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
16 |
embedding_model = os.getenv('EMBEDDING_ENGINE')
|
17 |
convo_length = int(os.getenv('CONVO_LENGTH_TO_FETCH'))
|
|
|
1 |
from time import time, sleep
|
2 |
import datetime
|
3 |
+
# import dotenv
|
4 |
+
# import os
|
5 |
import openai
|
6 |
import json
|
7 |
import pinecone
|
|
|
11 |
from langchain.memory import VectorStoreRetrieverMemory
|
12 |
|
13 |
## Read the environment variables
|
14 |
+
# dotenv.load_dotenv('.env')
|
15 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
16 |
embedding_model = os.getenv('EMBEDDING_ENGINE')
|
17 |
convo_length = int(os.getenv('CONVO_LENGTH_TO_FETCH'))
|