Ex: Install hub library

Hub library setup

Inference endpoints are invoked via the API available in the HuggingFace hub library. In this exercise you will install the hub library and try out the various API available in it.

The inference endpoint invocation requires the HuggingFace API key.

Solution

  • To run the notebook locally, open the sample book in Jupyter notebook

exercise-1-solution-notebook

Open in Google Colab
  • You need to install the huggingface_hub library
pip install transformers torch huggingface_hub
Open In Colab