Huggingface spaces + NoneType error

I am getting the following error when I deploy my crew ai project on huggingface spaces -
‘NoneType’ object does not support item assignment
The error is being thrown in below method that is kicked off before the crew starts. I believe ‘inputs’ parameters is being set as NoneType.
@before_kickoff
def prepare_inputs(self, inputs):
inputs[‘resume_text’] = resume_text

This works fine on my local.
Can someone help?