If you run the chain.run(“msg”) and shows an error then
- go to hugging face account → setting → Access Token
- Edit Access Token Permissions
- Under the Repositories check box Write access to contents/settings of all repos under your personal namespace.
- Under the Inference check box Make calls to the serverless Inference API
- Save and retry to run your code.