ivanoctaviogaitansantos commited on
Commit
3eec3f5
verified
1 Parent(s): 63b66b9

Update app.py

Browse files

Correcci贸n de sintaxis

Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,7 +8,7 @@ def generate_prompts(name):
8
  'captured full-body in a professional, high-resolution color photograph, conveying elegance and sensuality through natural movement that perfectly highlights a subtle lace accent in a visible, tasteful manner.',
9
  'The composition, in Ultra HD 16K format (15360 脳 8640), was shot with a Canon EOS R5 Cine RAW camera and a Canon RF 85mm f/1.2L USM lens, presenting a low-angle frontal perspective that emphasizes her full figure without distractions.',
10
  'The scene is lit with an ARRI SkyPanel S360-C panel, providing professional, shadow-free light, highlighting the textures of skin and delicate fabrics while maintaining a balanced exposure.',
11
- f"her outfit embodies a bold secretary aesthetic, blending youthful executive charm with daring, sensual elegance鈥攁 modern-classic fusion of tailored sophistication and subtle audacity. Complemented by a long, elegant hairstyle, styled with a refined arrangement and a vibrant, tasteful hue.",
12
  'The overall composition maintains a harmonious balance, with professional lighting emphasizing the delicate lace detail and the outfit without overexposure. The photograph achieves a perfect depth of field, ensuring sharp focus while gently blurring the background to eliminate distractions. Processed with expert color grading in DaVinci Resolve, the image exudes a polished, cinematic quality.'
13
  ]
14
 
@@ -52,9 +52,11 @@ def generate_prompts(name):
52
 
53
  html_prompts = ""
54
  for i, var in enumerate(variations):
 
 
55
  prompt = (
56
  f"Renowned celebrity {name} is {base_elements[0]} In this {var['atmosphere']}, she appears {var['metaphor']}, {var['activity']} "
57
- f"{base_elements[1]} {base_elements[2]} {base_elements[3].replace('her outfit', f'{name}\'s outfit')} {var['outfit']} {var['extra']} {base_elements[4]}"
58
  )
59
  personal_note = f"Oh, for {name}, I have infused this prompt with a touch of romance鈥攁 unique variation capturing the essence of {var['metaphor'].split(' ')[0]} grace!"
60
  html_prompts += f"""
 
8
  'captured full-body in a professional, high-resolution color photograph, conveying elegance and sensuality through natural movement that perfectly highlights a subtle lace accent in a visible, tasteful manner.',
9
  'The composition, in Ultra HD 16K format (15360 脳 8640), was shot with a Canon EOS R5 Cine RAW camera and a Canon RF 85mm f/1.2L USM lens, presenting a low-angle frontal perspective that emphasizes her full figure without distractions.',
10
  'The scene is lit with an ARRI SkyPanel S360-C panel, providing professional, shadow-free light, highlighting the textures of skin and delicate fabrics while maintaining a balanced exposure.',
11
+ "her outfit embodies a bold secretary aesthetic, blending youthful executive charm with daring, sensual elegance鈥攁 modern-classic fusion of tailored sophistication and subtle audacity. Complemented by a long, elegant hairstyle, styled with a refined arrangement and a vibrant, tasteful hue.",
12
  'The overall composition maintains a harmonious balance, with professional lighting emphasizing the delicate lace detail and the outfit without overexposure. The photograph achieves a perfect depth of field, ensuring sharp focus while gently blurring the background to eliminate distractions. Processed with expert color grading in DaVinci Resolve, the image exudes a polished, cinematic quality.'
13
  ]
14
 
 
52
 
53
  html_prompts = ""
54
  for i, var in enumerate(variations):
55
+ # Sustituye 'her' por el nombre din谩micamente y sin errores de sintaxis
56
+ outfit_base = f"{name}'s {base_elements[3]}"
57
  prompt = (
58
  f"Renowned celebrity {name} is {base_elements[0]} In this {var['atmosphere']}, she appears {var['metaphor']}, {var['activity']} "
59
+ f"{base_elements[1]} {base_elements[2]} {outfit_base} {var['outfit']} {var['extra']} {base_elements[4]}"
60
  )
61
  personal_note = f"Oh, for {name}, I have infused this prompt with a touch of romance鈥攁 unique variation capturing the essence of {var['metaphor'].split(' ')[0]} grace!"
62
  html_prompts += f"""