This commit is contained in:
phamhungd 2025-11-26 11:28:01 +07:00
parent 42041b23ba
commit bc44af8fe5
2 changed files with 7 additions and 6 deletions

5
app.py
View file

@ -218,7 +218,10 @@ def generate_image():
# Process reference paths and files # Process reference paths and files
final_reference_paths = [] 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 # Parse reference paths from frontend
frontend_paths = [] frontend_paths = []

View file

@ -281,12 +281,10 @@ document.addEventListener('DOMContentLoaded', () => {
return; return;
} }
// Concatenate prompt with note if note exists // Store original prompt and note separately
const finalPrompt = note ? `${prompt} ${note}` : prompt;
generationQueue.push({ generationQueue.push({
prompt: finalPrompt, prompt: prompt,
note: note, // Store original note separately for metadata note: note,
aspectRatio, aspectRatio,
resolution, resolution,
apiKey apiKey