<filename>endpoints/wwe.py
from utils.endpoint import Endpoint, setup


@setup
class Wwe(Endpoint):
    def generate(self, kwargs):
        texts = kwargs['texts']

        if len(texts) < 2:
            texts = ['using one quote', 'using two quotes or more']

        # set limit
        texts = texts[:6]

        base = self.create_text_ladder(texts)
        return self.send_file(base, format='jpeg')
<filename>endpoints/wwe.py
from utils.endpoint import Endpoint, setup


@setup
class Wwe(Endpoint):
    def generate(self, kwargs):
        texts = kwargs['texts']

        if len(texts) < 2:
            texts = ['using one quote', 'using two quotes or more']

        # set limit
        texts = texts[:6]

        base = self.create_text_ladder(texts)
        return self.send_file(base, format='jpeg')
# set limit