Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,11 +43,12 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, temperatu
|
|
| 43 |
"response_mime_type": "text/plain",
|
| 44 |
},
|
| 45 |
system_instruction=(
|
| 46 |
-
f"
|
| 47 |
-
f"
|
| 48 |
-
f"
|
| 49 |
-
"
|
| 50 |
-
f"
|
|
|
|
| 51 |
)
|
| 52 |
)
|
| 53 |
|
|
@@ -57,21 +58,13 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, temperatu
|
|
| 57 |
{
|
| 58 |
"role": "user",
|
| 59 |
"parts": [
|
| 60 |
-
f"
|
| 61 |
-
f"
|
| 62 |
-
f"
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"Ensure each bullet follows the structure of 'Connection + connector + Benefit,' and avoid including explanations like 'Connection: Improve' or 'Benefit: Increase my happiness.'\n"
|
| 68 |
-
"Important: Only respond with bullets, never include explanations or categories, like this example: 'Attend the masterclass and discover techniques to boost your professional career.' (This bullet appeals to the desire for personal and professional growth.)\n"
|
| 69 |
-
"Use these guidelines to generate high-converting bullets in Spanish."
|
| 70 |
-
"Important: Never include explanations or categories, like this: 'La leyenda del padre soltero: Dice que nunca hay tiempo suficiente. El yoga te enseña a usar mejor el tiempo que tienes, incluso cuando te parece imposible.' "
|
| 71 |
-
"Bullets should vary, based on these examples to guide your task of creating bullets:\n\n"
|
| 72 |
-
f"* {selected_bullet} "
|
| 73 |
-
# Añadir más ejemplos si es necesario
|
| 74 |
-
"Por favor, crea los bullets ahora."
|
| 75 |
],
|
| 76 |
},
|
| 77 |
]
|
|
|
|
| 43 |
"response_mime_type": "text/plain",
|
| 44 |
},
|
| 45 |
system_instruction=(
|
| 46 |
+
f"Eres un copywriter excepcional, experto en conectar con {target_audience}. "
|
| 47 |
+
f"Entiendes perfectamente sus emociones y desafíos. Crea bullets que no solo informen, sino que hablen directamente al corazón de {target_audience}, "
|
| 48 |
+
f"generando curiosidad y ganas de saber más sobre {product}. "
|
| 49 |
+
f"¡Haz que se sientan incluidos! Usa un tono amistoso y divertido. "
|
| 50 |
+
f"Por ejemplo, si están buscando {product}, dales un motivo irresistible para seguir leyendo. "
|
| 51 |
+
f"Incluye un encabezado atractivo que diga: 'Aquí tienes {num_bullets} razones por las que {target_audience} debería considerar {product}'."
|
| 52 |
)
|
| 53 |
)
|
| 54 |
|
|
|
|
| 58 |
{
|
| 59 |
"role": "user",
|
| 60 |
"parts": [
|
| 61 |
+
f"Quiero que escribas {num_bullets} bullets que transmitan los beneficios de {product} de una manera que atraiga a {target_audience}. "
|
| 62 |
+
f"Conecta los problemas y deseos de {target_audience} de forma natural y con un estilo amigable y divertido. "
|
| 63 |
+
f"Recuerda usar este ejemplo como inspiración: {selected_bullet}. "
|
| 64 |
+
"Aquí tienes un par de ideas para que te inspires:\n"
|
| 65 |
+
"1. ¿Sabías que...? Esto cambiará tu perspectiva sobre... \n"
|
| 66 |
+
"2. Imagina si pudieras... ¡Lo que estás buscando está aquí!\n"
|
| 67 |
+
f"Por favor, genera bullets creativos que hagan que {target_audience} se sienta emocionado por {product}."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
],
|
| 69 |
},
|
| 70 |
]
|