fix: #6 Ignore empty text chunk as it'll cause error later

pull/9/head
namuan 1 year ago
parent 2b68917bc7
commit 0c8af9f8c7

@ -148,7 +148,7 @@ class CombineAllText(WorkflowBase):
texts = text_splitter.split_text(text)
return {
"chunked_text_list": texts,
"chunked_text_list": [t for t in texts if t],
}

Loading…
Cancel
Save