From 1ea36b22df323a1ba6803e35f00da96aefa5c58c Mon Sep 17 00:00:00 2001 From: Arnab Ahamed Siam Date: Tue, 2 Jan 2024 13:28:26 +0600 Subject: [PATCH] added space for better ouput on text to image --- modules/api/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/api.py b/modules/api/api.py index 630d2954..26c1b8cc 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -314,8 +314,8 @@ def text2imggenerateapi(self, prompt: str = Body(title='user prompt'), global_negative="") - positive_prompt = prompt + data.prompt + data.global_positive - negative_prompt = data.negative_prompt + data.global_negative + positive_prompt = prompt + " " + data.prompt + " " + data.global_positive + negative_prompt = data.negative_prompt + " " + data.global_negative if style != "base": positive_prompt = StyleSelectorXL.createPositive(style, prompt + data.global_positive)