Instructions to use qantev/trocr-base-spanish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qantev/trocr-base-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-base-spanish")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("qantev/trocr-base-spanish") model = AutoModelForMultimodalLM.from_pretrained("qantev/trocr-base-spanish", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- f3536b045633e880882445a3e0496fbf8e93517474548062efeda99b88c91a9f
- Size of remote file:
- 1.54 GB
- SHA256:
- 898b5522b38d8e58939e3784b6c494a516a1718db2933368fb01f756dca0fe8e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.