Traceback (most recent call last):


 "/home/pedro/.local/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 385, in run_asgi

result = await app(self.scope, self.receive, self.send)


 "/home/pedro/.local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__

return await self.app(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/fastapi/applications.py", line 149, in __call__

await super().__call__(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/applications.py", line 102, in __call__

await self.middleware_stack(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 181, in __call__

raise exc from None


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 159, in __call__

await self.app(scope, receive, _send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 76, in __call__

await self.app(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__

raise exc from None


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/exceptions.py", line 71, in __call__

await self.app(scope, receive, sender)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/routing.py", line 550, in __call__

await route.handle(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/routing.py", line 227, in handle

await self.app(scope, receive, send)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/routing.py", line 41, in app

response = await func(request)


 "/home/pedro/.local/lib/python3.8/site-packages/fastapi/routing.py", line 196, in app

raw_response = await run_endpoint_function(


 "/home/pedro/.local/lib/python3.8/site-packages/fastapi/routing.py", line 150, in run_endpoint_function

return await run_in_threadpool(dependant.call, **values)


 "/home/pedro/.local/lib/python3.8/site-packages/starlette/concurrency.py", line 34, in run_in_threadpool

return await loop.run_in_executor(None, func, *args)


 "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/home/pedro/git_clones/haystack/haystack/api/controller/search.py", line 117, in doc_qa

result = finder.get_answers(


 "/home/pedro/git_clones/haystack/haystack/finder.py", line 43, in get_answers

results = self.reader.predict(question=question,
AttributeError: 'NoneType' object has no attribute 'predict'

Traceback (most recent call last):


 "train.py", line 245, in <module>

main()


 "train.py", line 198, in main

for i_iter, batch in enumerate(trainloader):


 "/root/anaconda3/envs/pytorch0.4.1/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 336, in __next__

return self._process_next_batch(batch)


 "/root/anaconda3/envs/pytorch0.4.1/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch

raise batch.exc_type(batch.exc_msg)
AttributeError: Traceback (most recent call last):
