Not able to create Multi agent customer support automation using hugging face api key

Giving this error :
AuthenticationError: Error code: 401 - {‘error’: {‘message’: ‘Incorrect API key provided: fake. You can find your API key at’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘invalid_api_key’}}

When trying to run : crew.kickoff(inputs=inputs)

My suggestions to solve your problem would be the following:

  1. Check in your .env.txt file if the Hugging_Face API is set up properly:

HF_API_KEY=“your hugging face api key here”

  1. In your notebook run the following code :

before the original paragraph ## Role Playing, Focus and Cooperation

  1. Then it should work but be patient because it will take a while!

Hoping this can help you!

1 Like