Skip to content

Commit

Permalink
fix segments
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChengmo committed Mar 19, 2024
1 parent 85b5ee1 commit d442244
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def add_segments(self, segments: Message, metadata=""):
segment_vectors = segment_vectors.content
vector_dims = len(segment_vectors[0])
segments = segments.content
if len(segment) == 0:
if len(segments) == 0:
raise ValueError("add_segments函数 参数segment 内容为空")

rows = []
Expand Down

0 comments on commit d442244

Please sign in to comment.