Vnmrsharma commited on
Commit
c0a27a1
·
verified ·
1 Parent(s): 9ad7115

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -33,18 +33,17 @@ def throttle():
33
 
34
  PROMPT_VARIATIONS = [
35
  # 1: Front view
36
- "Generate a PIXEL-PERFECT reproduction of the EXACT product from the input image, preserving all colors, text, shapes, and textures identically, on a PURE WHITE background. View: rotated 45° to the front-right.",
37
 
38
  # 2: Left-side view
39
- "Generate a PIXEL-PERFECT reproduction of the EXACT product from the input image, preserving all colors, text, shapes, and textures identically, on a PURE WHITE background. View: direct front-facing",
40
 
41
  # 3: Right-side view
42
- "Generate a PIXEL-PERFECT reproduction of the EXACT product from the input image, preserving all colors, text, shapes, and textures identically, on a PURE WHITE background. View: exact side profile (90° right).",
43
 
44
  # 4: Top-down view
45
- "Generate a PIXEL-PERFECT reproduction of the EXACT product from the input image, preserving all colors, text, shapes, and textures identically, on a PURE WHITE background. View: directly from above (top-down)."
46
  ]
47
-
48
  # Detailed prompt variations for different backgrounds/angles
49
 
50
  def process_variation(variation, input_image):
 
33
 
34
  PROMPT_VARIATIONS = [
35
  # 1: Front view
36
+ "Create a high-resolution 800×800px image of the EXACT SAME product from a front view. CRITICAL INSTRUCTIONS: The product must be a PIXEL-PERFECT match to the original in EVERY aspect - EXACT same text (including font, size, spacing, and positioning), EXACT same colors (including all shades, gradients, and color codes), EXACT same materials and textures, EXACT same branding elements, EXACT same dimensions and proportions, EXACT same markings and labels, EXACT same finish and surface details, EXACT same shadows and highlights, EXACT same reflections and gloss, EXACT same embossing or debossing if present. DO NOT modify ANY aspect of the product. ONLY change the viewing angle to front view. Maintain a pure white background with professional studio lighting. The output must be a high-quality, e-commerce ready image with perfect color accuracy and sharp details.",
37
 
38
  # 2: Left-side view
39
+ "Create a high-resolution 800×800px image of the EXACT SAME product from a left-side three-quarter (45-degree) angle. CRITICAL INSTRUCTIONS: The product must be a PIXEL-PERFECT match to the original in EVERY aspect - EXACT same text (including font, size, spacing, and positioning), EXACT same colors (including all shades, gradients, and color codes), EXACT same materials and textures, EXACT same branding elements, EXACT same dimensions and proportions, EXACT same markings and labels, EXACT same finish and surface details, EXACT same shadows and highlights, EXACT same reflections and gloss, EXACT same embossing or debossing if present. DO NOT modify ANY aspect of the product. ONLY change the viewing angle to left-side view. Maintain a pure white background with professional studio lighting. The output must be a high-quality, e-commerce ready image with perfect color accuracy and sharp details.",
40
 
41
  # 3: Right-side view
42
+ "Create a high-resolution 800×800px image of the EXACT SAME product from a right-side three-quarter (45-degree) angle. CRITICAL INSTRUCTIONS: The product must be a PIXEL-PERFECT match to the original in EVERY aspect - EXACT same text (including font, size, spacing, and positioning), EXACT same colors (including all shades, gradients, and color codes), EXACT same materials and textures, EXACT same branding elements, EXACT same dimensions and proportions, EXACT same markings and labels, EXACT same finish and surface details, EXACT same shadows and highlights, EXACT same reflections and gloss, EXACT same embossing or debossing if present. DO NOT modify ANY aspect of the product. ONLY change the viewing angle to right-side view. Maintain a pure white background with professional studio lighting. The output must be a high-quality, e-commerce ready image with perfect color accuracy and sharp details.",
43
 
44
  # 4: Top-down view
45
+ "Create a high-resolution 800×800px image of the EXACT SAME product from a top-down (bird's-eye) angle. CRITICAL INSTRUCTIONS: The product must be a PIXEL-PERFECT match to the original in EVERY aspect - EXACT same text (including font, size, spacing, and positioning), EXACT same colors (including all shades, gradients, and color codes), EXACT same materials and textures, EXACT same branding elements, EXACT same dimensions and proportions, EXACT same markings and labels, EXACT same finish and surface details, EXACT same shadows and highlights, EXACT same reflections and gloss, EXACT same embossing or debossing if present. DO NOT modify ANY aspect of the product. ONLY change the viewing angle to top-down view. Maintain a pure white background with professional studio lighting. The output must be a high-quality, e-commerce ready image with perfect color accuracy and sharp details."
46
  ]
 
47
  # Detailed prompt variations for different backgrounds/angles
48
 
49
  def process_variation(variation, input_image):