From 31bd58c3a54a734832a8421b69f0cebe4b1e87dc Mon Sep 17 00:00:00 2001 From: Per Harald Borgen Date: Fri, 15 Sep 2023 14:55:45 +0200 Subject: [PATCH] Clean up code indentation in the tutorial --- docs/source/tutorials/javascript.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/source/tutorials/javascript.md b/docs/source/tutorials/javascript.md index 189276c02..be1b3d21e 100644 --- a/docs/source/tutorials/javascript.md +++ b/docs/source/tutorials/javascript.md @@ -58,7 +58,7 @@ body { border: 2px solid black; padding: 8px 16px; cursor: pointer; - border-radius: 6px; + border-radius: 6px; } #file-upload { @@ -94,10 +94,7 @@ The next step is to link our HTML file to a script. Add the following tag at the The `type="module"` attribute is important, as it turns our file into a JavaScript module, meaning that we’ll be able to use imports and exports. This immediately comes in handy, as we’ll import the Transformers.js library from their CDN at the top of our `index.js` file: ```js -import { - pipeline, - env, -} from "https://cdn.jsdelivr.net/npm/@xenova/transformers@2.6.0"; +import { pipeline, env } from "https://cdn.jsdelivr.net/npm/@xenova/transformers@2.6.0"; ``` Since we will download the model from the Hugging Face Hub, we skip checking if we have it available locally: