Update app.py
Browse files
app.py
CHANGED
|
@@ -589,16 +589,18 @@ EJEMPLOS EXITOSOS DEL ÁNGULO {selected_angle}:
|
|
| 589 |
|
| 590 |
headlines_instruction += f"FÓRMULA A SEGUIR:\n{selected_formula['description']}\n\n"
|
| 591 |
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
|
|
|
|
|
|
| 602 |
|
| 603 |
chat_session = model.start_chat(
|
| 604 |
history=[
|
|
|
|
| 589 |
|
| 590 |
headlines_instruction += f"FÓRMULA A SEGUIR:\n{selected_formula['description']}\n\n"
|
| 591 |
|
| 592 |
+
# CORRECTO (con indentación):
|
| 593 |
+
if selected_angle != "NINGUNO":
|
| 594 |
+
headlines_instruction += f"""
|
| 595 |
+
RECORDATORIO FINAL:
|
| 596 |
+
1. Sigue la estructura de la fórmula seleccionada
|
| 597 |
+
2. Aplica el ángulo como una "capa de estilo"
|
| 598 |
+
3. Mantén la coherencia entre fórmula y ángulo
|
| 599 |
+
4. Asegura que cada titular refleje ambos elementos
|
| 600 |
+
|
| 601 |
+
GENERA AHORA:
|
| 602 |
+
Crea {number_of_headlines} titulares que sigan fielmente el estilo y estructura de los ejemplos mostrados.
|
| 603 |
+
"""
|
| 604 |
|
| 605 |
chat_session = model.start_chat(
|
| 606 |
history=[
|