Update app.py
Browse files
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['
|
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)
|