diff --git a/backend/text_processing/textual_inversion.py b/backend/text_processing/textual_inversion.py index 2a95513db..ca14ca6df 100644 --- a/backend/text_processing/textual_inversion.py +++ b/backend/text_processing/textual_inversion.py @@ -258,4 +258,7 @@ def create_embedding_from_data(data, name, filename='unknown embedding file', fi embedding.vectors = vectors embedding.shape = shape + if filepath: + embedding.filename = filepath + return embedding