You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the notebook top to bottom we get following error for the second cell:
document-question-answering is already registered. Overwriting pipeline for task document-question-answering...
2023-02-05 19:28:49,801 ERROR: Failed while processing https://arxiv.org/pdf/2101.07597.pdf on question: 'who authored this paper?'
Traceback (most recent call last):
File "/usr/local/bin/docquery", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/docquery/cmd/__main__.py", line 61, in main
return args.func(args)
File "/usr/local/lib/python3.8/dist-packages/docquery/cmd/scan.py", line 95, in main
response = nlp(question=q, **d.context)
File "/usr/local/lib/python3.8/dist-packages/docquery/ext/pipeline_document_question_answering.py", line 232, in __call__
return super().__call__({"question": question, "pages": normalized_images}, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/transformers/pipelines/base.py", line 1076, in __call__
return next(
File "/usr/local/lib/python3.8/dist-packages/transformers/pipelines/pt_utils.py", line 124, in __next__
item = next(self.iterator)
File "/usr/local/lib/python3.8/dist-packages/transformers/pipelines/pt_utils.py", line 291, in __next__
is_last = item.pop("is_last")
File "/usr/local/lib/python3.8/dist-packages/transformers/utils/generic.py", line 281, in pop
raise Exception(f"You cannot use ``pop`` on a {self.__class__.__name__} instance.")
Exception: You cannot use ``pop`` on a ModelOutput instance.
I get the same exception when running the following with my local install.
docquery scan "who authored this paper?" https://arxiv.org/pdf/2101.07597.pdf
I would really appreciate a fix, since I'm really curious of trying out docquery
Regards!
The text was updated successfully, but these errors were encountered:
When running the notebook top to bottom we get following error for the second cell:
I get the same exception when running the following with my local install.
I would really appreciate a fix, since I'm really curious of trying out docquery
Regards!
The text was updated successfully, but these errors were encountered: