JeCabrera commited on
Commit
dba7d39
verified
1 Parent(s): da68bd4

Update bullets/generator.py

Browse files
Files changed (1) hide show
  1. bullets/generator.py +5 -5
bullets/generator.py CHANGED
@@ -93,7 +93,7 @@ def create_bullet_instruction(product_name=None, uploaded_content=None, target_a
93
  guidance = ""
94
 
95
  # Check different combinations of available information
96
- if not avatar_description and not product_name and not uploaded_content:
97
  return """
98
  ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar los bullets.
99
 
@@ -104,7 +104,7 @@ def create_bullet_instruction(product_name=None, uploaded_content=None, target_a
104
 
105
  Sin esta informaci贸n, los bullets generados ser谩n gen茅ricos y posiblemente menos efectivos para tu oferta espec铆fica.
106
  """
107
- elif not avatar_description and not product_name and uploaded_content:
108
  # Only uploaded content provided
109
  guidance = """
110
  NOTA IMPORTANTE: Solo se ha proporcionado contenido adicional sin detalles espec铆ficos del p煤blico objetivo o producto.
@@ -445,7 +445,7 @@ def create_bullet_instruction_with_formula(target_audience=None, product_name=No
445
  randomly selected formula to ensure consistency.
446
 
447
  Args:
448
- avatar_description: Description of the target audience
449
  product_name: Name of the product or service
450
  uploaded_content: Content from uploaded files (if any)
451
  skills: User's skills and expertise
@@ -454,7 +454,7 @@ def create_bullet_instruction_with_formula(target_audience=None, product_name=No
454
  str: The complete instruction for generating bullets with the selected formula
455
  """
456
  # Check if any information is provided
457
- if not avatar_description and not product_name and not uploaded_content and not skills:
458
  return """
459
  ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar los bullets.
460
 
@@ -469,7 +469,7 @@ def create_bullet_instruction_with_formula(target_audience=None, product_name=No
469
 
470
  # Get base instruction
471
  base_instruction = create_bullet_instruction(
472
- avatar_description=avatar_description,
473
  product_name=product_name,
474
  uploaded_content=uploaded_content,
475
  skills=skills
 
93
  guidance = ""
94
 
95
  # Check different combinations of available information
96
+ if not target_audience and not product_name and not uploaded_content:
97
  return """
98
  ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar los bullets.
99
 
 
104
 
105
  Sin esta informaci贸n, los bullets generados ser谩n gen茅ricos y posiblemente menos efectivos para tu oferta espec铆fica.
106
  """
107
+ elif not target_audience and not product_name and uploaded_content:
108
  # Only uploaded content provided
109
  guidance = """
110
  NOTA IMPORTANTE: Solo se ha proporcionado contenido adicional sin detalles espec铆ficos del p煤blico objetivo o producto.
 
445
  randomly selected formula to ensure consistency.
446
 
447
  Args:
448
+ target_audience: Description of the target audience
449
  product_name: Name of the product or service
450
  uploaded_content: Content from uploaded files (if any)
451
  skills: User's skills and expertise
 
454
  str: The complete instruction for generating bullets with the selected formula
455
  """
456
  # Check if any information is provided
457
+ if not target_audience and not product_name and not uploaded_content and not skills:
458
  return """
459
  ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar los bullets.
460
 
 
469
 
470
  # Get base instruction
471
  base_instruction = create_bullet_instruction(
472
+ target_audience=target_audience,
473
  product_name=product_name,
474
  uploaded_content=uploaded_content,
475
  skills=skills