Error while executing Jupyter-AI

I am trying to run %%ai gpt2 to try out Jupyter-AI from GitHub - jupyterlab/jupyter-ai: A generative AI extension for JupyterLab

So, I am facing the same error “ValueError: Error raised by inference API: Authorization header is correct, but the token seems invalid”

I got this error with my older token too so I just freshly regenerated a new huggingfacehub token.
May be I am missing something here.

Please help me approach and fix this issue.

Thank You.