@@ -98,12 +98,6 @@ class Iconic(SimpleService): type=ModelParameter.TypeChoices.INTRANGE, values={'start': 1, 'end': 50, 'step': 1, 'default': 28}, ), - ModelParameter( - name='Отключить проверку безопасности', - key='disable_safety_checker', - type=ModelParameter.TypeChoices.BOOL, - values={'default': False}, - ), ] PRICE = Decimal('1.078') @@ -81,12 +81,6 @@ class Lightning(SimpleService): type=ModelParameter.TypeChoices.INTRANGE, values={'start': 1, 'end': 10, 'step': 1, 'default': 4}, ), - ModelParameter( - name='Отключить проверку безопасности', - key='disable_safety_checker', - type=ModelParameter.TypeChoices.BOOL, - values={'default': False}, - ), ] PRICE = Decimal('0.750') @@ -120,13 +120,21 @@ class Pulid(SimpleService): start_time = time.time() callback_data = dict( { - 'prompt': f'portrait, {self.translate_prompt(input_message.content)}', + 'prompt': ( + 'Create a portrait with a focus on professionalism and modesty. ' + 'The subject should be fully clothed, in a neutral or formal style. ' + f'Input description: {self.translate_prompt(input_message.content)}' + ), 'output_format': 'png', - 'negative_prompt': 'flaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, ' - 'worst quality, artifacts noise, text, watermark, glitch, deformed, mutated, ' - 'ugly, disfigured, hands, low resolution, partially rendered objects, deformed ' - 'or partially rendered eyes, deformed eyeballs, cross-eyed, blurry, ' - f'{input_message.info.pop('negative_prompt', '')}', + 'negative_prompt': ( + 'flaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, ' + 'worst quality, artifacts noise, text, watermark, glitch, deformed, mutated, ' + 'ugly, disfigured, hands, low resolution, partially rendered objects, deformed ' + 'or partially rendered eyes, deformed eyeballs, cross-eyed, blurry, udity, partial' + 'nudity, suggestive poses, revealing clothing, explicit content, offensive symbols, ' + 'provocative expressions, graphic violence, inappropriate themes' + f'{input_message.info.pop('negative_prompt', '')}' + ), **input_message.info, } ) @@ -168,7 +168,10 @@ class Recraft(SimpleService): size = self._get_size(input_message.info.pop('width', 1024), input_message.info.pop('height', 1024)) callback_data = dict( { - 'prompt': self.translate_prompt(input_message.content), + 'prompt': ( + 'The subject should be fully clothed, in a neutral or formal style. ' + f'Input description: {self.translate_prompt(input_message.content)}' + ), 'size': size, **input_message.info }