Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -623,29 +623,7 @@ def generate_headline_for_story(story, formula_type, product, target_audience, m
|
|
| 623 |
{story}
|
| 624 |
"""
|
| 625 |
}
|
| 626 |
-
|
| 627 |
-
headline_prompt = formula_prompts.get(formula_type, f"""
|
| 628 |
-
{system_prompt}
|
| 629 |
-
|
| 630 |
-
INSTRUCCIONES ESPEC脥FICAS:
|
| 631 |
-
Genera un titular persuasivo y memorable que:
|
| 632 |
-
- Conecte directamente con la historia narrada
|
| 633 |
-
- Refleje la transformaci贸n o experiencia descrita
|
| 634 |
-
- Use elementos espec铆ficos mencionados en el contenido
|
| 635 |
-
- Mantenga un tono {mood} coherente con la narrativa
|
| 636 |
-
- Sea conciso pero impactante
|
| 637 |
-
- No mencione directamente "{product}"
|
| 638 |
-
- Genere curiosidad mientras mantiene la relevancia
|
| 639 |
-
|
| 640 |
-
IMPORTANTE:
|
| 641 |
-
- El titular debe surgir naturalmente de la historia
|
| 642 |
-
- Usa palabras clave y conceptos presentes en la narrativa
|
| 643 |
-
- Evita titulares gen茅ricos que podr铆an aplicar a cualquier historia
|
| 644 |
-
|
| 645 |
-
Historia a titular:
|
| 646 |
-
{story}
|
| 647 |
-
""")
|
| 648 |
-
|
| 649 |
response = model.generate_content([headline_prompt])
|
| 650 |
if response and response.parts:
|
| 651 |
# Extraer el titular entre comillas si existe
|
|
|
|
| 623 |
{story}
|
| 624 |
"""
|
| 625 |
}
|
| 626 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 627 |
response = model.generate_content([headline_prompt])
|
| 628 |
if response and response.parts:
|
| 629 |
# Extraer el titular entre comillas si existe
|