fix
This commit is contained in:
parent
42041b23ba
commit
bc44af8fe5
2 changed files with 7 additions and 6 deletions
5
app.py
5
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 = []
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue