Vnmrsharma commited on
Commit
dbb4372
·
verified ·
1 Parent(s): 791ca28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -35,19 +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 analyze the input image and record every product detail—text, colour, material finish, branding, dimensions, texture, and any embellishments—ensuring nothing is overlooked. Step 2: A bohemian meadow at golden hour, shot from a 45° side profile angle. Place the product atop a low wooden stump amidst tall grasses and scattered wildflowers in warm peach, lavender, and sage hues. Backlight the scene with a low sun, creating a sun-flare halo around the product. Use shallow depth of field to softly blur the distant meadow while keeping the product’s exact colors, text, and outline crisply preserved. Step 3: Perform a rigorous pixel-level comparison to confirm 100 % fidelity to the original product data and deliver an e-commerce–ready image.",
39
  # 3: Slightly elevated angle, modern indoor
40
- "Chain-of-Thought: Step 1: Scrutinize the input image to record every element of the product—text, colour palette, material finish, and branding—without exception. Step 2: Generate a highly professional 800×800px image A Parisian cobblestone street at early morning, captured with a low-angle, head-on composition. Frame the product in the foreground against a backdrop of wrought-iron balconies, vintage street lamps, and pastel façades. Use warm, diffused sunlight bouncing off the stone pavement. Maintain every detail—color, typography, logo placement, and silhouette—of the product exactly as in the original while the background evokes timeless romance.. Step 3: Double-check at full resolution that no aspect of the product has been altered and that the image is e-commerce ready.",
41
  # 4: Low angle, cool ambient lighting
42
- "Chain-of-Thought: Step 1: Analyze the input image pixel-for-pixel to note every product detail—text, colour, texture, finish, branding and proportions—ensuring nothing is missed. Step 2: A minimalist Japanese studio setting, captured in a flat-lay overhead shot. Lay the product on a neutral woven tatami mat, surrounded by simple elements: a single bamboo stalk, a ceramic tea bowl, and a folded linen cloth. The color palette is soft beige, ivory, and charcoal. Use even, diffused studio lighting to avoid shadows. Ensure the product’s original hues, lettering, and exact shape are unaltered in the composition.. background, with the product’s text, colours, materials and details preserved exactly as in the original. Step 3: Verify 100 % fidelity at the pixel level and confirm readiness for online catalog upload.",
43
  # 5: Vibrant outdoor background
44
- "Chain-of-Thought: Step 1: Inspect the input image meticulously and record every detail—text, colour gradients, material texture, and branding—ensuring total accuracy. Step 2: Generate a highly professional 800×800px image of the product with A serene, spa-like environment with elements like pebbles, bamboo, and softly flickering candles. This setting is perfect for artisanal wellness products, emphasizing tranquility, balance, and self-care. Step 3: Validate that the final image is flawless, matches the original exactly and has product in it, and is optimized for e-commerce display.",
45
- # 6: Subtle gradient background
46
- "Chain-of-Thought: Step 1: Review the input image thoroughly, capturing and logging every detail—text, colour accuracy, surface finish, and branding—100 % intact. Step 2: Generate a highly professional 800×800px image with An abstract art studio background, captured in a close-up medium shot. Position the product against a large canvas splashed with bold acrylic strokes—rich reds, cobalt blues, and sunny yellows. Use a shallow depth-of-field so the brushstrokes blend into an artistic blur while the product remains razor-sharp. Do not alter any aspect of the product’s color, text, or shape. Step 3: Perform a pixel-level check to confirm no alterations and that the image meets e-commerce quality standards.",
47
- # 7: Artistic abstract background
48
- "Chain-of-Thought: Step 1: Examine the original product image in depth, noting every detail—text, colour tones, material texture, branding logos and dimensions—with absolute precision. Step 2: Generate a highly professional 800×800px image A cozy rustic cabin interior, shot at a three-quarter slight-overhead angle. Set the product on a reclaimed wood table with visible grain and knot details. Surround it with knitted throws, a steaming mug, and flickering candlelight in the background. The palette is warm browns, burnt orange, and soft cream. Preserve the product’s exact design—no modifications to color, type, or form—while the cabin elements provide a homey ambiance. Step 3: Verify pixel-perfect fidelity and confirm the output is upload-ready for an online store.",
49
- # 9: Rich lifestyle background
50
- "Chain-of-Thought: Step 1: Scrutinize the input image in full detail, logging every aspect of the product—text, colour accuracy, branding, material texture, finish, and proportions—to guarantee total fidelity. Step 2: Generate a highly professional 800×800px image A dreamy English garden at mid-morning, captured from a high-angle, slight tilt. Place the product on a mossy stone bench, encircled by pastel roses, peonies, and climbing ivy. Use gentle dappled sunlight filtering through overhead branches. The color scheme is soft pinks, greens, and cream. Keep the product’s original color fidelity, text clarity, and silhouette exactly as in the source image. Step 3: Validate at the pixel level that the output matches the original image perfectly and confirm readiness for online catalog upload.",
51
  ]
52
 
53
  # 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: 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