Instructions to use spidey1807/mlops_ass3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use spidey1807/mlops_ass3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="spidey1807/mlops_ass3")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("spidey1807/mlops_ass3") model = AutoModelForSequenceClassification.from_pretrained("spidey1807/mlops_ass3") - Notebooks
- Google Colab
- Kaggle
Upload label_mappings.json with huggingface_hub
Browse files- label_mappings.json +22 -0
label_mappings.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"label2id": {
|
| 3 |
+
"children": 0,
|
| 4 |
+
"comics_graphic": 1,
|
| 5 |
+
"fantasy_paranormal": 2,
|
| 6 |
+
"history_biography": 3,
|
| 7 |
+
"mystery_thriller_crime": 4,
|
| 8 |
+
"poetry": 5,
|
| 9 |
+
"romance": 6,
|
| 10 |
+
"young_adult": 7
|
| 11 |
+
},
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "children",
|
| 14 |
+
"1": "comics_graphic",
|
| 15 |
+
"2": "fantasy_paranormal",
|
| 16 |
+
"3": "history_biography",
|
| 17 |
+
"4": "mystery_thriller_crime",
|
| 18 |
+
"5": "poetry",
|
| 19 |
+
"6": "romance",
|
| 20 |
+
"7": "young_adult"
|
| 21 |
+
}
|
| 22 |
+
}
|