rajag0pal commited on
Commit
64f94f3
1 Parent(s): aff1c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ documents = loader.load()
15
  text_splitter = CharacterTextSplitter(chunk_size = 1000, chunk_overlap = 0)
16
  texts = text_splitter.split_documents(documents)
17
 
18
- openai.api_key = os.environ['API_KEY']
19
  embeddings = OpenAIEmbeddings()
20
 
21
  doc_search = Chroma.from_documents(texts, embeddings)
 
15
  text_splitter = CharacterTextSplitter(chunk_size = 1000, chunk_overlap = 0)
16
  texts = text_splitter.split_documents(documents)
17
 
18
+ openai.api_key = os.environ['OPENAI_API_KEY']
19
  embeddings = OpenAIEmbeddings()
20
 
21
  doc_search = Chroma.from_documents(texts, embeddings)