Update app.py
Browse files
app.py
CHANGED
|
@@ -521,16 +521,15 @@ IMPORTANT:
|
|
| 521 |
# Iniciar el prompt con las instrucciones del sistema
|
| 522 |
headlines_instruction = f"{system_prompt}\n\n"
|
| 523 |
|
| 524 |
-
#
|
| 525 |
if selected_angle != "NINGUNO":
|
| 526 |
headlines_instruction += (
|
| 527 |
f"ÁNGULO PRINCIPAL: {selected_angle}\n"
|
| 528 |
f"INSTRUCCIONES DE ÁNGULO ESPECÍFICAS:\n{angle_instructions[selected_angle]}\n\n"
|
| 529 |
f"EJEMPLOS EXITOSOS DEL ÁNGULO {selected_angle}:\n"
|
| 530 |
-
|
| 531 |
|
| 532 |
-
|
| 533 |
-
for example in angle_specific_examples:
|
| 534 |
headlines_instruction += f"- {example}\n"
|
| 535 |
|
| 536 |
headlines_instruction += (
|
|
@@ -538,7 +537,6 @@ IMPORTANT:
|
|
| 538 |
f"que capturen la atención instantáneamente y generen curiosidad sobre {product}. "
|
| 539 |
)
|
| 540 |
|
| 541 |
-
# Añadir instrucción específica de ángulo solo si no es "NINGUNO"
|
| 542 |
if selected_angle != "NINGUNO":
|
| 543 |
headlines_instruction += f"IMPORTANTE: Cada titular DEBE seguir el ángulo {selected_angle} de manera clara y consistente.\n\n"
|
| 544 |
|
|
|
|
| 521 |
# Iniciar el prompt con las instrucciones del sistema
|
| 522 |
headlines_instruction = f"{system_prompt}\n\n"
|
| 523 |
|
| 524 |
+
# Añadir instrucciones de ángulo solo si no es "NINGUNO"
|
| 525 |
if selected_angle != "NINGUNO":
|
| 526 |
headlines_instruction += (
|
| 527 |
f"ÁNGULO PRINCIPAL: {selected_angle}\n"
|
| 528 |
f"INSTRUCCIONES DE ÁNGULO ESPECÍFICAS:\n{angle_instructions[selected_angle]}\n\n"
|
| 529 |
f"EJEMPLOS EXITOSOS DEL ÁNGULO {selected_angle}:\n"
|
| 530 |
+
)
|
| 531 |
|
| 532 |
+
for example in angle_examples[selected_angle]:
|
|
|
|
| 533 |
headlines_instruction += f"- {example}\n"
|
| 534 |
|
| 535 |
headlines_instruction += (
|
|
|
|
| 537 |
f"que capturen la atención instantáneamente y generen curiosidad sobre {product}. "
|
| 538 |
)
|
| 539 |
|
|
|
|
| 540 |
if selected_angle != "NINGUNO":
|
| 541 |
headlines_instruction += f"IMPORTANTE: Cada titular DEBE seguir el ángulo {selected_angle} de manera clara y consistente.\n\n"
|
| 542 |
|