mmitch25 commited on
Commit
9012513
·
1 Parent(s): 5661b40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,6 +8,7 @@ load_dotenv(".env")
8
 
9
  openai.api_key = os.environ.get("openai_api_key")
10
 
 
11
 
12
  with open("guide1.txt") as f:
13
  hitchhikersguide = f.read()
@@ -19,8 +20,6 @@ texts = text_splitter.split_text(hitchhikersguide)
19
 
20
  from langchain.embeddings.openai import OpenAIEmbeddings
21
 
22
- os.environ["OPENAI_API_KEY"] = openai.api_key
23
-
24
  embeddings = OpenAIEmbeddings()
25
 
26
  from langchain.vectorstores import Chroma
 
8
 
9
  openai.api_key = os.environ.get("openai_api_key")
10
 
11
+ os.environ["OPENAI_API_KEY"] = openai.api_key
12
 
13
  with open("guide1.txt") as f:
14
  hitchhikersguide = f.read()
 
20
 
21
  from langchain.embeddings.openai import OpenAIEmbeddings
22
 
 
 
23
  embeddings = OpenAIEmbeddings()
24
 
25
  from langchain.vectorstores import Chroma