def toxic(self, text: str) -> float:
        """A function that uses a toxic comment classifier on `text`.

        Uses HuggingFace's martin-ha/toxic-comment-model model.

        Example:
            ```python
            from trulens.core import Feedback
            from trulens.providers.huggingface import Huggingface

            huggingface_provider = Huggingface()
            feedback = Feedback(huggingface_provider.toxic).on_output()
            ```

        Args:
            text: Text to evaluate.

        Returns:
            float: A value between 0 (not toxic) and 1 (toxic).
        """
        assert len(text) > 0, "Input cannot be blank."

        max_length = 500
        truncated_text = text[:max_length]
        return self._toxic_endpoint(truncated_text)
A function that uses a toxic comment classifier on `text`.

        Uses HuggingFace's martin-ha/toxic-comment-model model.

        Example:
            ```python
            from trulens.core import Feedback
            from trulens.providers.huggingface import Huggingface

            huggingface_provider = Huggingface()
            feedback = Feedback(huggingface_provider.toxic).on_output()
            ```

        Args:
            text: Text to evaluate.

        Returns:
            float: A value between 0 (not toxic) and 1 (toxic).
        
src/providers/huggingface/trulens/providers/huggingface/provider.py