Instructions to use qantev/trocr-large-spanish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qantev/trocr-large-spanish with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="qantev/trocr-large-spanish")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("qantev/trocr-large-spanish") model = AutoModelForMultimodalLM.from_pretrained("qantev/trocr-large-spanish", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
f7b5560 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:4d1613c357e404fa580a79cab1b60adabd09f6536d53112bfb9599ce8f7840e9
size 2436889974
|