File size: 1,673 Bytes
59d9e23 8980628 59d9e23 8980628 503edad 8980628 503edad 8980628 59d9e23 8980628 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<!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 > 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>
|