blog
blog copied to clipboard
Got lost in the Twitter Analysis
Not sure where to find/define the "Model ID" and "API Token" You will be using Inference API, an easy-to-use API for integrating machine learning models. For using the Inference API, you will need to define your "model id" and your "Hugging Face API Token":
The model ID Is any of the >400 sentiment analysis models of the Hub https://huggingface.co/models?pipeline_tag=text-classification&sort=downloads&search=sentiment. You just need the name, such as cardiffnlp/twitter-xlm-roberta-base-sentiment.
The API token can be obtained from https://huggingface.co/settings/tokens. These are in the step 4 in the blog post. cc @feconroses