Skip to content

Commit

Permalink
📝 Fix typo in jinja README (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova authored Dec 18, 2023
1 parent 3782a46 commit b777342
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/jinja/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ A minimalistic JavaScript implementation of the Jinja templating engine, specifi

### Load template from a model on the Hugging Face Hub

First, install the templates and hub packages:
First, install the jinja and hub packages:

```sh
npm i @huggingface/templates
npm i @huggingface/jinja
npm i @huggingface/hub
```

You can then load a tokenizer from the Hugging Face Hub and render a list of chat messages, as follows:

```js
import { Template } from "@huggingface/templates";
import { Template } from "@huggingface/jinja";
import { downloadFile } from "@huggingface/hub";

const config = await (
Expand All @@ -43,10 +43,10 @@ const result = template.render({

### Transformers.js

First, install the `@huggingface/templates` and `@xenova/transformers` packages:
First, install the `@huggingface/jinja` and `@xenova/transformers` packages:

```sh
npm i @huggingface/templates
npm i @huggingface/jinja
npm i @xenova/transformers
```

Expand Down

0 comments on commit b777342

Please sign in to comment.