huggingface-on-sheets / index.html
fdaudens's picture
fdaudens HF staff
typo
503edad
raw
history blame
No virus
1.67 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 src="demo.gif" width="100%">
<h3>Steps</h3>
<ol>
<li><p>You will need to create a script in Google Sheets (Extensions &gt; Apps Script).</p></li>
<li><p>Replace the existing code with <a href="code.gs" target="_blank">this script</a> and save it.</p></li>
<li><p>Back in the Sheet, you should see a new tab called "Hugging Sheets".</p></li>
<li><p>Click on it and add your API key.</p></li>
<li><p>Voilà!</p></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>