From bc44af8fe59219f1a1d517f555881cc0793b26e3 Mon Sep 17 00:00:00 2001 From: phamhungd Date: Wed, 26 Nov 2025 11:28:01 +0700 Subject: [PATCH] fix --- app.py | 5 ++++- static/script.js | 8 +++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 124f7c4..05656f4 100644 --- a/app.py +++ b/app.py @@ -218,7 +218,10 @@ def generate_image(): # Process reference paths and files final_reference_paths = [] - contents = [prompt] + + # Merge prompt with note for API call, but keep originals for metadata + api_prompt = f"{prompt}. {note}" if note else prompt + contents = [api_prompt] # Parse reference paths from frontend frontend_paths = [] diff --git a/static/script.js b/static/script.js index 194f3cc..25684b1 100644 --- a/static/script.js +++ b/static/script.js @@ -281,12 +281,10 @@ document.addEventListener('DOMContentLoaded', () => { return; } - // Concatenate prompt with note if note exists - const finalPrompt = note ? `${prompt} ${note}` : prompt; - + // Store original prompt and note separately generationQueue.push({ - prompt: finalPrompt, - note: note, // Store original note separately for metadata + prompt: prompt, + note: note, aspectRatio, resolution, apiKey