Update app.py
Browse files
app.py
CHANGED
@@ -441,7 +441,7 @@ def initialize():
|
|
441 |
home = os.path.join(tmp_dir_path, new_sub_path)
|
442 |
|
443 |
embedding_model = HuggingFaceEmbeddings(model_name=EMBEDDING_MODEL_NAME)
|
444 |
-
vectorstore = Chroma.from_texts(texts=
|
445 |
|
446 |
print("Appended path stored in 'home':", home)
|
447 |
|
|
|
441 |
home = os.path.join(tmp_dir_path, new_sub_path)
|
442 |
|
443 |
embedding_model = HuggingFaceEmbeddings(model_name=EMBEDDING_MODEL_NAME)
|
444 |
+
vectorstore = Chroma.from_texts(texts=doc_texts, embedding=embedding_model, persist_directory=home)
|
445 |
|
446 |
print("Appended path stored in 'home':", home)
|
447 |
|