Error while running query

#5
by mohammedabdul - opened

Hi,
I got an error while running query like,
Traceback (most recent call last):
File "c:/Users/Admin/Desktop/projects/Docquery/docquery/docquery_test.py", line 10, in
print(q, p(question=q, **doc.context))
File "C:\Users\Admin\anaconda3\envs\docqurery\lib\site-packages\docquery\ext\pipeline_document_question_answering.py", line 232, in call
return super().call({"question": question, "pages": normalized_images}, **kwargs)
File "C:\Users\Admin\anaconda3\envs\docqurery\lib\site-packages\transformers\pipelines\base.py", line 1076, in call
return next(
File "C:\Users\Admin\anaconda3\envs\docqurery\lib\site-packages\transformers\pipelines\pt_utils.py", line 124, in next
item = next(self.iterator)
File "C:\Users\Admin\anaconda3\envs\docqurery\lib\site-packages\transformers\pipelines\pt_utils.py", line 292, in next
is_last = item.pop("is_last")
File "C:\Users\Admin\anaconda3\envs\docqurery\lib\site-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'm getting the same error. I hope they could fix it, so we can use this great system.

Sign up or log in to comment