mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
updated
This commit is contained in:
parent
4ca65ea545
commit
c0e03309c4
@ -218,10 +218,13 @@ class TextVectorizer:
|
||||
|
||||
# Connect the click event handler to the figure
|
||||
plt.gcf().canvas.mpl_connect("button_press_event", on_click)
|
||||
if save_fig_path:
|
||||
try:
|
||||
plt.savefig(save_fig_path)
|
||||
except Exception as ex:
|
||||
trace_exception(ex)
|
||||
if show_interactive_form:
|
||||
plt.show()
|
||||
if save_fig_path:
|
||||
plt.savefig(save_fig_path)
|
||||
|
||||
def add_document(self, document_id, text, chunk_size, overlap_size, force_vectorize=False):
|
||||
if document_id in self.embeddings and not force_vectorize:
|
||||
|
Loading…
Reference in New Issue
Block a user