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.

try:
chain.run(“colorful clothes”)
except Exception as e:
print(e)
Bad request:
Authorization header is correct, but the token seems invalid
i am facing this error please help me to find out the solution