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
| { | |
| "label2id": { | |
| "children": 0, | |
| "comics_graphic": 1, | |
| "fantasy_paranormal": 2, | |
| "history_biography": 3, | |
| "mystery_thriller_crime": 4, | |
| "poetry": 5, | |
| "romance": 6, | |
| "young_adult": 7 | |
| }, | |
| "id2label": { | |
| "0": "children", | |
| "1": "comics_graphic", | |
| "2": "fantasy_paranormal", | |
| "3": "history_biography", | |
| "4": "mystery_thriller_crime", | |
| "5": "poetry", | |
| "6": "romance", | |
| "7": "young_adult" | |
| } | |
| } |