JeCabrera commited on
Commit
198c591
·
verified ·
1 Parent(s): c9577ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -518,22 +518,18 @@ IMPORTANT:
518
  - Focus on transformative benefits
519
  - Follow the selected angle style and structure"""
520
 
521
- # Obtener ejemplos específicos del ángulo seleccionado
522
- angle_specific_examples = angle_examples[selected_angle]
523
-
524
  # Iniciar el prompt con las instrucciones del sistema
525
  headlines_instruction = f"{system_prompt}\n\n"
526
 
527
- # Añadir instrucciones de ángulo solo si no es "NINGUNO"
528
  if selected_angle != "NINGUNO":
529
  headlines_instruction += (
530
  f"ÁNGULO PRINCIPAL: {selected_angle}\n"
531
  f"INSTRUCCIONES DE ÁNGULO ESPECÍFICAS:\n{angle_instructions[selected_angle]}\n\n"
532
  f"EJEMPLOS EXITOSOS DEL ÁNGULO {selected_angle}:\n"
533
- )
534
 
535
  # Añadir ejemplos del ángulo seleccionado
536
- angle_specific_examples = angle_examples[selected_angle]
537
  for example in angle_specific_examples:
538
  headlines_instruction += f"- {example}\n"
539
 
 
518
  - Focus on transformative benefits
519
  - Follow the selected angle style and structure"""
520
 
 
 
 
521
  # Iniciar el prompt con las instrucciones del sistema
522
  headlines_instruction = f"{system_prompt}\n\n"
523
 
524
+ # Mantener el if pero MODIFICAR el bloque dentro de él:
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
  # Añadir ejemplos del ángulo seleccionado
 
533
  for example in angle_specific_examples:
534
  headlines_instruction += f"- {example}\n"
535