huggingface-on-sheets / index.html
fdaudens's picture
fdaudens HF staff
first commit
8980628
raw
history blame
1.64 kB
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Hugging Face Sheets add-on</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<h1>Hugging Face Sheets add-on</h1>
<p>Hugging Face in your spreadsheet?</p>
<p>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.</p>
<img url="demo.gif" width="100%">
<h2>Steps</h2>
<ol>
<li>You will need to create a script in Google Sheets (Extensions &gt; Apps Script).</li>
<li>Replace the existing code with <a href="code.gs" target="_blank">this script</a> and save it.</li>
<li>Back in the Sheet, you should see a new tab called "Hugging Sheets".</li>
<li>Click on it and add your API key.</li>
<li>Voilà!</li>
</ol>
<p><strong>Note:</strong> To generate your API key, click on the <a href="https://huggingface.co/settings/tokens">Access Token tab in your Hugging Face settings</a>.</p>
<p>Tested with llama 8b and 70b, and mixtral, e.g.:</p>
<ul>
<li><code>=HF(cell or prompt, "meta-llama/Meta-Llama-3-70B-Instruct")</code></li>
<li><code>=HF(cell or prompt, "meta-llama/Meta-Llama-3-8B-Instruct")</code></li>
<li><code>=HF(cell or prompt, "mistralai/Mixtral-8x7B-Instruct-v0.3")</code></li>
</ul>
<p>This <a href="https://huggingface.co/blog/inference-pro#supported-models">blog post</a> gives a good overview of the supported models.
</div>
</body>
</html>