Skip to content

Commit

Permalink
bugfix: fix get_extra_readers() return None. (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-doug authored Jun 26, 2024
1 parent aa0948c commit f6a658c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modelscope_agent/rag/knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ def get_extra_readers(
)
return extra_readers

return {
extra_readers.update({
'.pb': PandasCSVReader(),
'.html': HTMLTagReader(),
'.txt': FlatReader()
}.update(extra_readers)
})

return extra_readers

def read(self,
knowledge_source: Union[str, List[str]],
Expand Down

0 comments on commit f6a658c

Please sign in to comment.