Xenova HF staff commited on
Commit
c1b09b1
1 Parent(s): 43e15cb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -138,10 +138,10 @@ npm i xenova/transformers.js#v3
138
 
139
  Then, you can use the following code to interact with the model:
140
  ```js
141
- import { AutoTokenizer, AutoModelForSequenceClassification } from '@xenova/transformers';
142
 
143
  const model_id = 'jinaai/jina-reranker-v2-base-multilingual';
144
- const model = await AutoModelForSequenceClassification.from_pretrained(model_id, { dtype: 'fp32' });
145
  const tokenizer = await AutoTokenizer.from_pretrained(model_id);
146
 
147
  /**
 
138
 
139
  Then, you can use the following code to interact with the model:
140
  ```js
141
+ import { AutoTokenizer, XLMRobertaModel } from '@xenova/transformers';
142
 
143
  const model_id = 'jinaai/jina-reranker-v2-base-multilingual';
144
+ const model = await XLMRobertaModel.from_pretrained(model_id, { dtype: 'fp32' });
145
  const tokenizer = await AutoTokenizer.from_pretrained(model_id);
146
 
147
  /**