Hugging Face Sheets add-on

Hugging Face in your spreadsheet?

Because spreadsheets can be incredibly useful for journalists, this project connects Hugging Face Inference API with Google Sheets. Handy for prompting, extraction, classification, translation, etc.

Steps

  1. You will need to create a script in Google Sheets (Extensions > Apps Script).

  2. Replace the existing code with this script and save it.

  3. Back in the Sheet, you should see a new tab called "Hugging Sheets".

  4. Click on it and add your API key.

  5. VoilĂ !

Note: To generate your API key, click on the Access Token tab in your Hugging Face settings.

Tested with llama 8b and 70b, and mixtral, e.g.:

This blog post gives a good overview of the supported models.