Timeout error when using Huggingface model

I have a custom action that does a bunch of things and then checks for user message and classify the message into different moods. Im using of the huggingface bert based model for emotion classification…

from transformers import pipeline
classifier = pipeline("text-classification",model='', return_all_scores=True)
prediction = classifier("user message", )
return prediction

While the message is passed through the model and I get a response i’m getting a timeout error on my rasa shell. ( please refer to the attached image) Do I need to tweak anything here so I can increase the wait time? @mloubser

Let me know if you need anything in specific here… looking forward to hearing from you.

Thank you