Vnmrsharma commited on
Commit
7fa5710
·
verified ·
1 Parent(s): dbb4372

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -35,13 +35,13 @@ PROMPT_VARIATIONS = [
35
  # 1: White background
36
  "Chain-of-Thought: Step 1: Carefully analyze the input image and document every single detail of the product—text, colour, material finish, branding, dimensions, and any embellishments—ensuring no detail is overlooked. Step 2: Generate a highly professional 800×800px image with a pure white background and bright natural lighting, strictly preserving the product’s text, colour, shape and finish exactly as in the original image, with zero alterations. Step 3: Rigorously verify pixel-by-pixel that the output matches the original product data 100 %, then deliver a ready-for-e-commerce upload image.",
37
  # 2: Chnaged
38
- "Chain-of-Thought: Step 1: Meticulously examine the uploaded image and record every aspect of the product, including its shape, color accuracy, surface texture, branding elements, proportions, and any unique features. Step 2: Recreate the product as an 800×800px image, ensuring it is centered on a flawless, pure white background with balanced margins and even, natural lighting. The product’s appearance-color, text, and finish-must match the original image exactly, with no artistic interpretation or alteration. Step 3: Validate that the generated image is pixel-perfect and fully compliant for e-commerce use, with no shadows or artifacts on the white background.",
39
  # 3: Slightly elevated angle, modern indoor
40
- "Chain-of-Thought: Step 1: Analyze the provided image in detail, noting all visible product characteristics such as logo placement, material sheen, color gradients, and any text or labels. Step 2: Generate a high-resolution, square image (800×800px) of the product, isolated on a seamless, pure white background with soft, diffuse lighting. The product should be visually identical to the original, maintaining all details and proportions. Step 3: Inspect to confirm the image is free from background noise, shadows, or color bleed, and is immediately ready for online storefronts.",
41
  # 4: Low angle, cool ambient lighting
42
- "Chain-of-Thought: Step 1: Carefully document every detail of the product in the input image, including its dimensions, surface finish, color fidelity, and any decorative elements or inscriptions. Step 2: Create a photorealistic 800×800px image with the product perfectly centered on a clean, pure white background, ensuring even margins and professional studio lighting. The product’s features must be preserved exactly as shown, with no modifications. Step 3: Rigorously check that the output image is clear, sharp, and suitable for e-commerce listing, with no background distractions or inconsistencies.",
43
  # 5: Vibrant outdoor background
44
- "Chain-of-Thought: Step 1: Thoroughly observe the uploaded image, noting every aspect of the product-its color, branding, surface details, and proportions. Step 2: Render a high-quality 800×800px image of the product, isolated on a bright, pure white background with balanced padding and no visible shadows. Ensure the product’s appearance is an exact match to the original, with no creative changes. Step 3: Verify that the image is free from any background elements and is ready for direct use in online catalogs or marketplaces.",
45
  ]
46
 
47
  # Detailed prompt variations for different backgrounds/angles
 
35
  # 1: White background
36
  "Chain-of-Thought: Step 1: Carefully analyze the input image and document every single detail of the product—text, colour, material finish, branding, dimensions, and any embellishments—ensuring no detail is overlooked. Step 2: Generate a highly professional 800×800px image with a pure white background and bright natural lighting, strictly preserving the product’s text, colour, shape and finish exactly as in the original image, with zero alterations. Step 3: Rigorously verify pixel-by-pixel that the output matches the original product data 100 %, then deliver a ready-for-e-commerce upload image.",
37
  # 2: Chnaged
38
+ "Chain-of-Thought: Step 1: Carefully analyze the input image and document every single detail of the product-text, colour, material finish, branding, dimensions, and any embellishments-ensuring no detail is overlooked. Step 2: Generate a highly professional 800×800px image of the product from a left-side three-quarter (45-degree) angle, with a pure white background and bright natural lighting, strictly preserving the product’s text, colour, shape, and finish exactly as in the original image, with zero alterations.Step 3: Rigorously verify pixel-by-pixel that the output matches the original product data 100%, then deliver a ready-for-e-commerce upload image.",
39
  # 3: Slightly elevated angle, modern indoor
40
+ "Chain-of-Thought: Step 1: Carefully analyze the input image and document every single detail of the product-text, colour, material finish, branding, dimensions, and any embellishments-ensuring no detail is overlooked.Step 2: Generate a highly professional 800×800px image of the product from a right-side three-quarter (45-degree) angle, with a pure white background and bright natural lighting, strictly preserving the product’s text, colour, shape, and finish exactly as in the original image, with zero alterations. Step 3: Rigorously verify pixel-by-pixel that the output matches the original product data 100%, then deliver a ready-for-e-commerce upload image.",
41
  # 4: Low angle, cool ambient lighting
42
+ "Chain-of-Thought: Step 1: Carefully analyze the input image and document every single detail of the product-text, colour, material finish, branding, dimensions, and any embellishments-ensuring no detail is overlooked. Step 2: Generate a highly professional 800×800px image of the product from a top-down (bird’s-eye) angle, with a pure white background and bright natural lighting, strictly preserving the product’s text, colour, shape, and finish exactly as in the original image, with zero alterations. Step 3: Rigorously verify pixel-by-pixel that the output matches the original product data 100%, then deliver a ready-for-e-commerce upload image. ",
43
  # 5: Vibrant outdoor background
44
+ # "Chain-of-Thought: Step 1: Thoroughly observe the uploaded image, noting every aspect of the product-its color, branding, surface details, and proportions. Step 2: Render a high-quality 800×800px image of the product, isolated on a bright, pure white background with balanced padding and no visible shadows. Ensure the product’s appearance is an exact match to the original, with no creative changes. Step 3: Verify that the image is free from any background elements and is ready for direct use in online catalogs or marketplaces.",
45
  ]
46
 
47
  # Detailed prompt variations for different backgrounds/angles