Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def generate_prompts(name): | |
| if not name.strip(): | |
| return "Please enter a female name to inspire me." | |
| base_elements = [ | |
| '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.', | |
| '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.', | |
| '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.', | |
| "her outfit embodies a bold secretary aesthetic, blending youthful executive charm with daring, sensual elegance—a 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.", | |
| '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.' | |
| ] | |
| variations = [ | |
| { | |
| "atmosphere": 'romantic whisper of twilight intimacy', | |
| "metaphor": 'like a secret melody unfolding in soft light', | |
| "activity": 'reviewing documents at an elegant mahogany desk, her poised stance subtly revealing the delicate lace detail as she leans forward with intent focus.', | |
| "outfit": 'She wears a fitted charcoal blazer over a sheer ivory blouse, paired with a high-waisted pencil skirt that daringly hints at intricate thigh-high stockings and a lace bra, balancing corporate sharpness with a sensual edge.', | |
| "extra": 'Her gaze, a gentle invitation of desire, dances with natural confidence as shadows caress the intricate fabrics.' | |
| }, | |
| { | |
| "atmosphere": 'romantic embrace of artistic serenity', | |
| "metaphor": 'as if silk whispers against the skin in a symphony of elegance', | |
| "activity": 'organizing files in a sleek office corner, her graceful bend accentuating the subtle lace accent in a moment of effortless allure.', | |
| "outfit": 'Her attire features a tailored navy suit jacket, unbuttoned to reveal a lace-trimmed camisole, matched with a form-fitting skirt slit just high enough to suggest daring thigh-highs, exuding modern audacity and classic poise.', | |
| "extra": 'Balanced exposure reveals the subtle play of textures, evoking a sense of refined pleasure in every curve.' | |
| }, | |
| { | |
| "atmosphere": 'romantic veil of poetic allure', | |
| "metaphor": 'echoing the grace of a hidden garden blooming under cinematic stars', | |
| "activity": 'taking a call by a panoramic office window, her confident posture subtly showcasing the delicate lace detail as she turns with poised elegance.', | |
| "outfit": 'She dons a crisp white button-up, slightly undone at the collar, with a burgundy midi skirt that clings to her form, paired with sheer stockings and a hint of lace beneath, merging executive flair with sensual boldness.', | |
| "extra": 'Vibrant hues in her hairstyle frame an expression of ease, where light and texture harmonize in sensual depth.' | |
| }, | |
| { | |
| "atmosphere": 'romantic dance of refined sensuality', | |
| "metaphor": 'like moonlight tracing delicate contours in a canvas of sophistication', | |
| "activity": 'reaching for a high shelf of leather-bound ledgers, her natural stretch making the subtle lace accent perfectly noticeable in a fleeting, elegant moment.', | |
| "outfit": 'Her ensemble includes a sleek black turtleneck tucked into a high-slit tweed skirt, revealing glimpses of lace-trimmed stockings and a daring undergarment, a perfect blend of youthful power and provocative charm.', | |
| "extra": 'The low-angle view captures spontaneous movement, with ARRI light illuminating the elegant hints without a single distraction.' | |
| }, | |
| { | |
| "atmosphere": 'romantic harmony of romantic finesse', | |
| "metaphor": 'as petals unfurl in a breeze of controlled illumination', | |
| "activity": 'sitting at a glass conference table, crossing her legs with deliberate grace, the subtle lace detail catching the light in a captivating, sophisticated display.', | |
| "outfit": 'She sports a tailored emerald blazer over a satin slip dress, with sheer lace stockings and a barely-there lace accent beneath, crafting an audacious yet refined secretary look that balances modernity and timeless allure.', | |
| "extra": 'DaVinci Resolve grading polishes the scene, emphasizing thigh-high details and a pose that breathes effortless allure.' | |
| } | |
| ] | |
| html_prompts = "" | |
| for i, var in enumerate(variations): | |
| # Sustituye 'her' por el nombre dinámicamente y sin errores de sintaxis | |
| outfit_base = f"{name}'s {base_elements[3]}" | |
| prompt = ( | |
| f"Renowned celebrity {name} is {base_elements[0]} In this {var['atmosphere']}, she appears {var['metaphor']}, {var['activity']} " | |
| f"{base_elements[1]} {base_elements[2]} {outfit_base} {var['outfit']} {var['extra']} {base_elements[4]}" | |
| ) | |
| personal_note = f"Oh, for {name}, I have infused this prompt with a touch of romance—a unique variation capturing the essence of {var['metaphor'].split(' ')[0]} grace!" | |
| html_prompts += f""" | |
| <div style='background: rgba(255,255,255,0.05); padding:20px; margin-bottom: 20px; border-radius:10px; border:1px solid rgba(153,102,204,0.3);'> | |
| <h3 style='color:#9966CC;'>Prompt {i+1}: Romantic Capture of {name}</h3> | |
| <p style='font-style: italic; color: rgba(255, 255, 255, 0.8); margin-bottom: 15px;'>{personal_note}</p> | |
| <p style='line-height: 1.6; margin-bottom: 15px; font-size: 1em;'>{prompt}</p> | |
| </div> | |
| """ | |
| return html_prompts | |
| with gr.Blocks(css=""" | |
| body { font-family: 'Georgia', serif; background: linear-gradient(135deg, #1a0033, #330066); color: white; } | |
| .container { max-width: 900px; margin: 20px auto; background: rgba(0, 0, 0, 0.7); padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); } | |
| h1 { font-size: 3.5em; font-weight: bold; text-align: center; background: linear-gradient(45deg, #330066, #663399, #9966CC); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; } | |
| p.subtitle { text-align: center; font-size: 1.2em; color: #9966CC; margin-top: -10px; margin-bottom: 20px; } | |
| """) as demo: | |
| gr.HTML("<div class='container'>" | |
| "<h1>BATUTO</h1>" | |
| "<p class='subtitle'>Play with one of my 😈ALTER EGOS😈</p>" | |
| "<div style='text-align: center; font-size: 1.1em; margin-bottom: 30px; line-height: 1.6;'>" | |
| "Hello! You are about to interact with one of my 😈ALTER EGOS😈 that I have, I will unleash my creativity with unique variations, hope you won't regret it 😉." | |
| "</div>") | |
| name_input = gr.Textbox(label="Enter female name (e.g., Sophia)", placeholder="Female name") | |
| output_html = gr.HTML() | |
| generate_button = gr.Button("Generate 5 Prompts") | |
| generate_button.click(fn=generate_prompts, inputs=name_input, outputs=output_html) | |
| gr.HTML("</div>") | |
| if __name__ == "__main__": | |
| demo.launch() | |