LiamDowd commited on
Commit
8648ebb
1 Parent(s): b350051

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -221,6 +221,7 @@ def newFile(files, filepaths):
221
  embeddings = HuggingFaceEmbeddings()
222
  #STORES TO CHROMA DB
223
  docs = [Document(page_content=x) for x in text_splitter.split_text(fileText)]
 
224
  db = Chroma.from_documents(docs, embeddings, persist_directory= baseFilePath + "chroma_db")
225
  print("Done processing: " + filepaths[count].split("/")[-1])
226
  count = count + 1
 
221
  embeddings = HuggingFaceEmbeddings()
222
  #STORES TO CHROMA DB
223
  docs = [Document(page_content=x) for x in text_splitter.split_text(fileText)]
224
+ print(docs)
225
  db = Chroma.from_documents(docs, embeddings, persist_directory= baseFilePath + "chroma_db")
226
  print("Done processing: " + filepaths[count].split("/")[-1])
227
  count = count + 1