Reubencf commited on
Commit
2bdbd57
·
1 Parent(s): 7c5d018

some changes

Browse files
Files changed (1) hide show
  1. app/api/process/route.ts +3 -3
app/api/process/route.ts CHANGED
@@ -208,7 +208,7 @@ The result should look like all subjects were photographed together in the same
208
  } else if (params.selectedPreset === "Blazer") {
209
  prompts.push("Replace the person's clothing with a professional blazer. Use the clothes reference image if provided.");
210
  } else {
211
- prompts.push("Replace the clothes of person from Image 1 to match the provided clothes reference image (attached below). Preserve body pose and identity.");
212
  }
213
 
214
  try {
@@ -315,9 +315,9 @@ The result should look like all subjects were photographed together in the same
315
  // Generate with Gemini
316
  const parts = [
317
  { text: prompt },
318
- // Primary subject image (input)
319
  { inlineData: { mimeType: parsed.mimeType, data: parsed.data } },
320
- // Additional reference images to guide modifications
321
  ...referenceParts,
322
  ];
323
 
 
208
  } else if (params.selectedPreset === "Blazer") {
209
  prompts.push("Replace the person's clothing with a professional blazer. Use the clothes reference image if provided.");
210
  } else {
211
+ prompts.push(`Take the person shown in the first image and replace their entire outfit with the clothing items shown in the second reference image. The person's face, hair, body pose, and background should remain exactly the same. Only the clothing should change to match the reference clothing image. Ensure the new clothes fit naturally on the person's body with realistic proportions, proper fabric draping, and lighting that matches the original photo environment.`);
212
  }
213
 
214
  try {
 
315
  // Generate with Gemini
316
  const parts = [
317
  { text: prompt },
318
+ // Primary subject image (input) - this is the person whose clothes will be changed
319
  { inlineData: { mimeType: parsed.mimeType, data: parsed.data } },
320
+ // Additional reference images to guide modifications (e.g., clothes to copy)
321
  ...referenceParts,
322
  ];
323