Text Classification
Transformers
ONNX
Safetensors
English
distilbert
intent-classification
multitask
iab
conversational-ai
adtech
calibrated-confidence
text-embeddings-inference
Instructions to use admesh/agentic-intent-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use admesh/agentic-intent-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="admesh/agentic-intent-classifier")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("admesh/agentic-intent-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload inference_subtype.py with huggingface_hub
Browse files- inference_subtype.py +4 -1
inference_subtype.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import json
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def predict(text: str, confidence_threshold: float | None = None):
|
|
|
|
| 1 |
import json
|
| 2 |
|
| 3 |
+
try:
|
| 4 |
+
from .model_runtime import get_head # type: ignore
|
| 5 |
+
except ImportError:
|
| 6 |
+
from model_runtime import get_head
|
| 7 |
|
| 8 |
|
| 9 |
def predict(text: str, confidence_threshold: float | None = None):
|