Run it
Four-way output
See inside
The classifier emits four raw logits. A softmax turns them into competing probabilities that sum to one; your threshold changes only the visible product policy, never the model output. Token chips below are the actual WordPiece inputs, including special tokens.
Run an input to reveal tensor shape, token count, latency, backend, and dtype.
Why this narrow signal can matter
- Offer a clarification prompt before sending an incoherent chatbot query downstream.
- Route questionable form submissions to review without uploading text to a third party.
- Audit a dataset for likely encoding or copy/paste failures while retaining human review.
Use-case portfolio
How the API works
const detector = await pipeline("text-classification",
"madhurjindal/autonlp-Gibberish-Detector-492513457",
{ revision: "76672dd7d3575f68ab980705bcec975cc62de71c", dtype: "fp32" });
const scores = await detector(text, { top_k: null });
This showcase uses the lower-level tokenizer and sequence-classification model in a versioned worker so it can expose real token IDs, logits, tensor shape, cancellation, bounded queuing, and deterministic release.