After pip3 install
ing tensorflow
and the transformers
library, I'm receiving the titular error when I try loading this
from transformers import pipeline
classifier = pipeline("text-classification",model='bhadresh-savani/distilbert-base-uncased-emotion')
The error traceback looks like:
RuntimeError: Failed to import transformers.models.distilbert.modeling_tf_distilbert because of the following error (look up to see its traceback):
No module named 'keras.saving.hdf5_format'
I have ensured keras got installed with transformers, so I'm not sure why it isn't working