PanoEvJ commited on
Commit
dafb440
·
1 Parent(s): 4277f8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ with open("guide1.txt") as f:
13
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0, separator = "\n")
14
  texts = text_splitter.split_text(hitchhikersguide)
15
 
16
- embeddings = OpenAIEmbeddings()
17
 
18
  docsearch = Chroma.from_texts(texts, embeddings, metadatas=[{"source": str(i)} for i in range(len(texts))]).as_retriever()
19
 
 
13
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0, separator = "\n")
14
  texts = text_splitter.split_text(hitchhikersguide)
15
 
16
+ embeddings = OpenAIEmbeddings(openai_api_key='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')
17
 
18
  docsearch = Chroma.from_texts(texts, embeddings, metadatas=[{"source": str(i)} for i in range(len(texts))]).as_retriever()
19