The following labs are all ran as Google Colab. This means that you don't need to worry about installations, as the first lines of code take care of this.
However, if you want to run these labs locally in your computer, you'll need to do some initial set up of the Cohere client in order to make API calls to the endpoints. Here is the setup.
The first step is to install the Cohere Python SDK.
$ pip install cohere
In order to make API calls to the models, you need an API key. You can sign up for a Cohere account and create an API key, which you can generate from one of the following interfaces:
Once that is done, you can set up the Cohere client as follows.
import cohere co = cohere.Client(api_key)
Updated about 1 month ago
Now you are ready to delve into the models. Learn about the Classify endpoint.