Instructions to use fedihch/InvoiceReceiptClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fedihch/InvoiceReceiptClassifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="fedihch/InvoiceReceiptClassifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("fedihch/InvoiceReceiptClassifier") model = AutoModelForSequenceClassification.from_pretrained("fedihch/InvoiceReceiptClassifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,12 +27,4 @@ logits = outputs.logits
|
|
| 27 |
predicted_class_idx = logits.argmax(-1).item()
|
| 28 |
id2label = {0: "invoice", 1: "receipt"}
|
| 29 |
print(id2label[predicted_class_idx])
|
| 30 |
-
```
|
| 31 |
-
|
| 32 |
-
---
|
| 33 |
-
language:
|
| 34 |
-
- code
|
| 35 |
-
license: "other"
|
| 36 |
-
datasets:
|
| 37 |
-
- Custom dataset
|
| 38 |
-
---
|
|
|
|
| 27 |
predicted_class_idx = logits.argmax(-1).item()
|
| 28 |
id2label = {0: "invoice", 1: "receipt"}
|
| 29 |
print(id2label[predicted_class_idx])
|
| 30 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|