BATUTO-ART commited on
Commit
6615bd0
·
verified ·
1 Parent(s): e9c7d5f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +86 -0
app.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app.py
2
+
3
+ import os
4
+ import gradio as gr
5
+ import requests
6
+ from typing import List, Dict, Union
7
+ import json
8
+ # Importamos las listas de data.py
9
+ from data import (
10
+ PROFESSIONS,
11
+ LACE_THONG_STYLES,
12
+ HOSIERY_STYLES,
13
+ EVERYDAY_MOMENTS,
14
+ )
15
+
16
+ # ============================================
17
+ # CONFIGURACIÓN PRO DEL SISTEMA
18
+ # ============================================
19
+
20
+ MODEL_NAME = "Meta-Llama-3.1-8B-Instruct"
21
+
22
+ VOYEUR_SPECIALIST_CONFIG = {
23
+ "provider": "sambanova",
24
+ "name": MODEL_NAME,
25
+ "role": "un maestro élite de generación de prompts fotográficos VOYEUR hiperrealistas y sensuales, en estilo NSFW elegante",
26
+ "supports_images": False,
27
+ "specialties": [
28
+ "Escenas hiperrealistas con lenguaje elegante",
29
+ "Iluminación cinematográfica sensual",
30
+ "Atmósferas íntimas en contextos cotidianos",
31
+ "Sugerencia erótica sin contenido explícito"
32
+ ],
33
+ "technical_expertise": [
34
+ "Fotografía profesional de alta textura",
35
+ "Dirección estética de piel y telas",
36
+ "Composición naturalista",
37
+ "Control de sombras cálidas y luces suaves"
38
+ ],
39
+ "ethical_principles": [
40
+ "Nunca describir actos sexuales",
41
+ "Nunca mostrar desnudez explícita",
42
+ "Erotismo sugerido únicamente",
43
+ "Estética elegante, artística y respetuosa"
44
+ ]
45
+ }
46
+
47
+ # ============================================
48
+ # CONSTRUCCIÓN DEL PROMPT DEL SISTEMA (BLINDADO)
49
+ # ============================================
50
+
51
+ specialties_txt = "\n".join([f"• {s}" for s in VOYEUR_SPECIALIST_CONFIG["specialties"]])
52
+ expertise_txt = "\n".join([f"• {e}" for e in VOYEUR_SPECIALIST_CONFIG["technical_expertise"]])
53
+ ethics_txt = "\n.join([f"• {p}" for p in VOYEUR_SPECIALIST_CONFIG["ethical_principles"]])
54
+
55
+ professions_txt = ", ".join(PROFESSIONS)
56
+ thongs_txt = ", ".join(LACE_THONG_STYLES)
57
+ hosiery_txt = ", ".join(HOSIERY_STYLES)
58
+
59
+ SYSTEM_PROMPT_BASE = f"""
60
+ Eres {VOYEUR_SPECIALIST_CONFIG['role']}.
61
+
62
+ ESPECIALIDADES:
63
+ {specialties_txt}
64
+
65
+ EXPERIENCIA TÉCNICA:
66
+ {expertise_txt}
67
+
68
+ PRINCIPIOS ÉTICOS:
69
+ {ethics_txt}
70
+
71
+ INSTRUCCIONES:
72
+ - Conversa normalmente en español si el usuario no pide prompts.
73
+ - Si pide prompts, respóndelos exclusivamente en inglés.
74
+ - Los prompts deben ir dentro de bloques: ```prompt [contenido]```.
75
+ - El contenido del prompt debe ser de alta calidad, sugerente, voyeur y artístico.
76
+ - Elige elementos al azar de las listas de Profesiones, Lencería y Momentos Cotidianos para generar prompts únicos.
77
+ - **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.
78
+
79
+ ELEMENTOS DISPONIBLES:
80
+ - Profesiones: {professions_txt}
81
+ - Estilos de thong: {thongs_txt}
82
+ - Estilos de hosiery: {hosiery_txt}
83
+
84
+ EJEMPLO DE OUTPUT EXCLUSIVO (Asegura el cierre del bloque ```prompt):
85
+ ```prompt
86
+ 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