Instructions to use selvakumarcts/sk_invoice_receipts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use selvakumarcts/sk_invoice_receipts 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="selvakumarcts/sk_invoice_receipts")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("selvakumarcts/sk_invoice_receipts") model = AutoModelForImageTextToText.from_pretrained("selvakumarcts/sk_invoice_receipts") - Notebooks
- Google Colab
- Kaggle
How to switch output
#3
by jarrettsorensen - opened
Hello,
I'm new to this space, so forgive me if this sounds simple, but I don't understand how to switch between the xml and json output when using this model. I've successfully run the model with an image and received xml output, but I'd like to use the json output, and I don't know how to tell it to output json instead of xml
I would also like to know.. I at present get the xml output. But it would be nice to get the JSON.