How to add API keys

Hi there,

When I am running “python -m prodigy ner.teach news_headlines en_core_web_sm “Australia” --api nyt” then server starts and then it gives error of “Oops, something went wrong :(”.

Then I checked command prompt then there is some issue with Authentication.
“Unauthorized for url:”.

Can you please tell me how to get pass this ?

In order to use the streaming APIs, you’ll need to sign up for an API key to the various services (in this case the NYT api). You can then enter your API key in your prodigy.json. You should be able to find details about this in your PRODIGY_README.html file.

In case you don’t have that on-hand, the contents of your prodigy.json file should look something like this:

  "api_keys": {"nyt": "..."}