make a new script that calls this one below, and uses fastapi to exposing its function endpoints, eg. detect_profanity for calling the ProfanityDetector class etc., etc., I would also like the new fastapi script should enable metrics for each individual/entity who makes requests, and keep record of how many detections it has performed and general online status and so on....

```python
import pickle
import coloredlogs


# If my verbose logger is installed, we'll use that for the demo.
try:
    from verboselogs import VerboseLogger as getLogger
except ImportError:
    from logging import getLogger


# Create a logger object.
logger = getLogger('PY_FILTER_MODEL_v1')

# Set the log level to DEBUG.
coloredlogs.install(level='DEBUG', fmt='%(asctime)s,%(msecs)03d %(name)s %(levelname)s %(message)s')

class ProfanityDetector:
    """
    A class for detecting profanity in text.

    """

    def __init__(self):
        self.vectorizer = pickle.load(open('vectorizer.v1', 'rb'))
        self.model = pickle.load(open('model.v1', 'rb'))

    def detect_profanity(self, texts):
        """
        Detects profanity in a string or a list of texts.

        :param texts: str or list, the input text(s) to be analyzed for profanity
        :return: bool or list, True if profanity is detected, False otherwise (or a list of booleans for multiple texts)
        """
        if isinstance(texts, str):
            texts = [texts]  # Convert single text to a list

        tokens = self.vectorizer.transform(texts).toarray()
        pred Provide exactly two different responses that are separated with 6 asterisk symbols: ******.
user