"table-question-answering" is not an available task under pipeline

Hi there,

I ran this myself and it throws an error indeed, indicating that ‘nielsr/tapas-base-finetuned-wtq’ does not exist. This is logical since I deleted that model from the hub, because everything is now under the Google namespace. @lysandre we should update the default model of the TableQuestionAnsweringPipeline to ‘google/tapas-base-finetuned-wtq’ instead of ‘nielsr/tapas-base-finetuned-wtq’.

For now, it works when you pass in an appropriate model name that exists in the model hub (note that you should install the torch-scatter dependency for your environment):

from transformers import pipeline
import pandas as pd

tqa = pipeline("table-question-answering", model="google/tapas-base-finetuned-wtq")

Then you can make predictions. I’ve made a Colab notebook that you can run here: https://colab.research.google.com/drive/15i5hPANX9uDB03DyGNEqD_fCYwVv0xeQ?usp=sharing

1 Like