mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
Update discussions_database.py
This commit is contained in:
parent
95ab717ca4
commit
6d24a9f52e
@ -670,11 +670,14 @@ class Discussion:
|
||||
|
||||
if len(self.vectorizer.list_documents())==0 and len(self.text_files)>0:
|
||||
for path in self.text_files:
|
||||
data = TextDocumentsLoader.read_file(path)
|
||||
try:
|
||||
self.vectorizer.add_document(path.stem, data, path, True)
|
||||
data = TextDocumentsLoader.read_file(path)
|
||||
try:
|
||||
self.vectorizer.add_document(path.stem, data, path, True)
|
||||
except Exception as ex:
|
||||
trace_exception(ex)
|
||||
except Exception as ex:
|
||||
trace_exception(ex)
|
||||
trace_exception(ex)
|
||||
try:
|
||||
self.vectorizer.index()
|
||||
except Exception as ex:
|
||||
|
Loading…
Reference in New Issue
Block a user