Instructions to use Xenova/trocr-base-handwritten with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/trocr-base-handwritten with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'Xenova/trocr-base-handwritten');
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 0, | |
| "decoder_start_token_id": 2, | |
| "eos_token_id": 2, | |
| "pad_token_id": 1, | |
| "transformers_version": "4.33.2", | |
| "use_cache": false | |
| } | |