Skip to content

Create google.yml#1

Merged
BATUTO90 merged 2 commits intoBATUTO90-patch-1from
main
Jul 2, 2025
Merged

Create google.yml#1
BATUTO90 merged 2 commits intoBATUTO90-patch-1from
main

Conversation

@BATUTO90
Copy link
Owner

@BATUTO90 BATUTO90 commented Jul 2, 2025

BATUTO-ART

📦 Instala la librería si no está instalada

!pip install -U google-generativeai --quiet

import google.generativeai as genai
from IPython.display import display, HTML
import base64

🔐 Tu API Key

genai.configure(api_key="AIzaSyCEOtjyRUyCWxhHAJEmpJw86oO1L9_PeXo")

🧠 Modelo de generación de imagen

model = genai.GenerativeModel(model_name="models/imagen-4")

✨ Prompt estilizado (puedes modificarlo a tu gusto)

prompt = """
Ultra-realistic fashion editorial photo of a confident woman inspired by Ariana Grande.
She is wearing a distressed denim mini skirt revealing a hint of purple lace bikini bottoms,
a sheer black chiffon blouse tied below the bust exposing her toned midriff,
black thigh-high stockings with garter straps, and glossy knee-high boots.
She stands in a neon-lit urban alley at night, with reflections in wet puddles.
Her long wavy hair flows in the breeze and her lips are glossy.
High-fashion, cinematic lighting, full-body, 9:16 vertical frame, photorealistic, 8K resolution.
"""

🖼️ Generar la imagen

response = model.generate_content(
prompt=prompt,
generation_config={
"sampleCount": 1,
"aspectRatio": "9:16",
}
)

💾 Mostrar la imagen generada

for idx, part in enumerate(response.parts):
if hasattr(part, 'raw_data'):
img_bytes = part.raw_data
b64_img = base64.b64encode(img_bytes).decode("utf-8")
display(HTML(f"""

Imagen {idx + 1}



<textarea style="width:100%; height:120px">{b64_img}</textarea>
"""))

@vercel
Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
multi-bot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:39am
multi-bot-1i4c ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:39am

@BATUTO90 BATUTO90 merged commit 9dd662e into BATUTO90-patch-1 Jul 2, 2025
2 checks passed
@BATUTO90 BATUTO90 self-assigned this Jul 2, 2025
@BATUTO90 BATUTO90 linked an issue Jul 2, 2025 that may be closed by this pull request
Copy link
Owner Author

@BATUTO90 BATUTO90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es un algo que ni yo sé que hice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CHAT_BOT_BATUTO_ART

1 participant