Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ benefits_formulas = {
|
|
| 64 |
- **Inter茅s**: Detalla c贸mo el beneficio del {product} soluciona un problema espec铆fico o como Facilita la obtencion de un deseo de {target_audience}.
|
| 65 |
- **Deseo**: Despierta el anhelo por lograr el resultado prometido.
|
| 66 |
- **Acci贸n**: Inspira al lector a actuar para obtener el beneficio.
|
| 67 |
-
Todos estos elementos se integral de manera natural y no forzada al crear los bullets points o beneficios.
|
| 68 |
""",
|
| 69 |
"examples": [
|
| 70 |
"Descubre c贸mo atraer clientes autom谩ticamente, sin experiencia previa.",
|
|
@@ -91,7 +91,7 @@ def generate_benefits(number_of_benefits, target_audience, product, temperature,
|
|
| 91 |
model = genai.GenerativeModel(
|
| 92 |
model_name="gemini-1.5-flash",
|
| 93 |
generation_config=generation_config,
|
| 94 |
-
system_instruction="You are a world-class copywriter, with expertise in crafting benefits that connect emotionally and address the desires, problems, and motivations of {target_audience}. Your task is to generate compelling and specific benefit bullets in Spanish based on a given formula. Always respond with a numbered list format, and ensure each benefit is relevant, concise, action-oriented with a natural language and conversational way. Do not include explanations or categories in your output."
|
| 95 |
)
|
| 96 |
|
| 97 |
# Crear un mensaje para el modelo, destacando la audiencia, el producto, la f贸rmula seleccionada y los ejemplos
|
|
|
|
| 64 |
- **Inter茅s**: Detalla c贸mo el beneficio del {product} soluciona un problema espec铆fico o como Facilita la obtencion de un deseo de {target_audience}.
|
| 65 |
- **Deseo**: Despierta el anhelo por lograr el resultado prometido.
|
| 66 |
- **Acci贸n**: Inspira al lector a actuar para obtener el beneficio.
|
| 67 |
+
Todos estos elementos se integral de manera natural y no forzada al crear los bullets points o beneficios. Los bullets points est谩n escritos de una manera conversacional y natural como en "examples".
|
| 68 |
""",
|
| 69 |
"examples": [
|
| 70 |
"Descubre c贸mo atraer clientes autom谩ticamente, sin experiencia previa.",
|
|
|
|
| 91 |
model = genai.GenerativeModel(
|
| 92 |
model_name="gemini-1.5-flash",
|
| 93 |
generation_config=generation_config,
|
| 94 |
+
system_instruction="You are a world-class copywriter, with expertise in crafting benefits that connect emotionally and address the desires, problems, and motivations of {target_audience}. Your task is to generate compelling and specific benefit bullets in Spanish based on a given formula. Always respond with a numbered list format, and ensure each benefit is relevant, concise, action-oriented with a natural language and conversational way. Do not include explanations or categories in your output. Never include these symbols : when you create bullets"
|
| 95 |
)
|
| 96 |
|
| 97 |
# Crear un mensaje para el modelo, destacando la audiencia, el producto, la f贸rmula seleccionada y los ejemplos
|