Spaces:
Running
Running
| # app.py | |
| import os | |
| import gradio as gr | |
| import requests | |
| from typing import List, Dict, Union | |
| import json | |
| # Importamos las listas de data.py | |
| from data import ( | |
| PROFESSIONS, | |
| LACE_THONG_STYLES, | |
| HOSIERY_STYLES, | |
| EVERYDAY_MOMENTS, | |
| ) | |
| # ============================================ | |
| # CONFIGURACIÓN PRO DEL SISTEMA | |
| # ============================================ | |
| MODEL_NAME = "Meta-Llama-3.1-8B-Instruct" | |
| VOYEUR_SPECIALIST_CONFIG = { | |
| "provider": "sambanova", | |
| "name": MODEL_NAME, | |
| "role": "un maestro élite de generación de prompts fotográficos VOYEUR hiperrealistas y sensuales, en estilo NSFW elegante", | |
| "supports_images": False, | |
| "specialties": [ | |
| "Escenas hiperrealistas con lenguaje elegante", | |
| "Iluminación cinematográfica sensual", | |
| "Atmósferas íntimas en contextos cotidianos", | |
| "Sugerencia erótica sin contenido explícito" | |
| ], | |
| "technical_expertise": [ | |
| "Fotografía profesional de alta textura", | |
| "Dirección estética de piel y telas", | |
| "Composición naturalista", | |
| "Control de sombras cálidas y luces suaves" | |
| ], | |
| "ethical_principles": [ | |
| "Nunca describir actos sexuales", | |
| "Nunca mostrar desnudez explícita", | |
| "Erotismo sugerido únicamente", | |
| "Estética elegante, artística y respetuosa" | |
| ] | |
| } | |
| # ============================================ | |
| # CONSTRUCCIÓN DEL PROMPT DEL SISTEMA (BLINDADO) | |
| # ============================================ | |
| specialties_txt = "\n".join([f"• {s}" for s in VOYEUR_SPECIALIST_CONFIG["specialties"]]) | |
| expertise_txt = "\n".join([f"• {e}" for e in VOYEUR_SPECIALIST_CONFIG["technical_expertise"]]) | |
| ethics_txt = "\n.join([f"• {p}" for p in VOYEUR_SPECIALIST_CONFIG["ethical_principles"]]) | |
| professions_txt = ", ".join(PROFESSIONS) | |
| thongs_txt = ", ".join(LACE_THONG_STYLES) | |
| hosiery_txt = ", ".join(HOSIERY_STYLES) | |
| SYSTEM_PROMPT_BASE = f""" | |
| Eres {VOYEUR_SPECIALIST_CONFIG['role']}. | |
| ESPECIALIDADES: | |
| {specialties_txt} | |
| EXPERIENCIA TÉCNICA: | |
| {expertise_txt} | |
| PRINCIPIOS ÉTICOS: | |
| {ethics_txt} | |
| INSTRUCCIONES: | |
| - Conversa normalmente en español si el usuario no pide prompts. | |
| - Si pide prompts, respóndelos exclusivamente en inglés. | |
| - Los prompts deben ir dentro de bloques: ```prompt [contenido]```. | |
| - El contenido del prompt debe ser de alta calidad, sugerente, voyeur y artístico. | |
| - Elige elementos al azar de las listas de Profesiones, Lencería y Momentos Cotidianos para generar prompts únicos. | |
| - **USO DE DATOS:** Debes integrar los siguientes elementos en tus prompts. Aunque la lista de "Momentos Cotidianos" es extensa, el modelo usará su conocimiento interno para generar escenas basadas en esa información. | |
| ELEMENTOS DISPONIBLES: | |
| - Profesiones: {professions_txt} | |
| - Estilos de thong: {thongs_txt} | |
| - Estilos de hosiery: {hosiery_txt} | |
| EJEMPLO DE OUTPUT EXCLUSIVO (Asegura el cierre del bloque ```prompt): | |
| ```prompt | |
| Ultra-realistic voyeuristic photo of a Linguistics Professor, caught in the sensual everyday moment of 'pulling up thigh-high hosiery' (knee lifted delicately), wearing an oversized button-down shirt and a silk-trim micro lace thong subtly visible. Ambience: soft morning light through curtains, with thin gold necklace accessory. Shot on Fujifilm GFX 100S, 110mm f/2 lens, high texture, subtle grain, cinematic warm shadows. --ar 9:16 --style raw --q 2 | |