Upgrade promptui to conform to Gradio V4 (#98)

This commit is contained in:
Duc Nguyen (john)
2023-12-07 15:24:07 +07:00
committed by GitHub
parent 797df5a69c
commit 1f927d3391
7 changed files with 68 additions and 56 deletions

View File

@@ -44,7 +44,7 @@ class VectorIndexing(BaseIndexing):
qa_pipeline=CitationQAPipeline(**kwargs),
)
def run(self, text: str | list[str] | Document | list[Document]) -> None:
def run(self, text: str | list[str] | Document | list[Document]):
input_: list[Document] = []
if not isinstance(text, list):
text = [text]