Instructions to use Dragneel/Ticket-classification-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dragneel/Ticket-classification-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Dragneel/Ticket-classification-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Dragneel/Ticket-classification-model") model = AutoModelForSequenceClassification.from_pretrained("Dragneel/Ticket-classification-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -39,6 +39,7 @@ import torch
|
|
| 39 |
id_to_label = {0: 'Billing Question', 1: 'Feature Request', 2: 'General Inquiry', 3: 'Technical Issue'}
|
| 40 |
|
| 41 |
# Load model and tokenizer
|
|
|
|
| 42 |
tokenizer = AutoTokenizer.from_pretrained("YOUR_MODEL_PATH")
|
| 43 |
model = AutoModelForSequenceClassification.from_pretrained("YOUR_MODEL_PATH")
|
| 44 |
|
|
|
|
| 39 |
id_to_label = {0: 'Billing Question', 1: 'Feature Request', 2: 'General Inquiry', 3: 'Technical Issue'}
|
| 40 |
|
| 41 |
# Load model and tokenizer
|
| 42 |
+
YOUR_MODEL_PATH = 'Dragneel/Ticket-classification-model'
|
| 43 |
tokenizer = AutoTokenizer.from_pretrained("YOUR_MODEL_PATH")
|
| 44 |
model = AutoModelForSequenceClassification.from_pretrained("YOUR_MODEL_PATH")
|
| 45 |
|