Instructions to use dchen0/font-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dchen0/font-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dchen0/font-classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("dchen0/font-classifier") model = AutoModelForImageClassification.from_pretrained("dchen0/font-classifier") - Notebooks
- Google Colab
- Kaggle
Update adapter_config.json
Browse files- adapter_config.json +1 -1
adapter_config.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
"value",
|
| 33 |
"query"
|
| 34 |
],
|
| 35 |
-
"task_type":
|
| 36 |
"trainable_token_indices": null,
|
| 37 |
"use_dora": false,
|
| 38 |
"use_rslora": false
|
|
|
|
| 32 |
"value",
|
| 33 |
"query"
|
| 34 |
],
|
| 35 |
+
"task_type": "SEQ_CLS",
|
| 36 |
"trainable_token_indices": null,
|
| 37 |
"use_dora": false,
|
| 38 |
"use_rslora": false
|