Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +4 -4
prompts.py
CHANGED
@@ -53,7 +53,7 @@ STEPS TO COMPLETE THE TASK:
|
|
53 |
THE ENTIRE RESPONSE MUST BE IN SPANISH, especially the section "Lo que realmente quiere".
|
54 |
For the section "Lo que realmente quiere" (What they really want), identify and focus on THE SINGLE MOST IMPORTANT underlying desire that drives this avatar. Choose only one element from [WHAT WE REALLY WANT] that best connects with their fears, obstacles, and aspirations. Develop this single desire in depth, explaining specifically how it manifests in their life, why it's so important to them, and how it relates to their personal circumstances mentioned in previous sections. Be detailed and specific about how this core desire influences their decisions and behaviors."""
|
55 |
|
56 |
-
def create_instruction(product_service, skills, target_audience=None, gender=None, consciousness_level="Ninguno", format_type="
|
57 |
"""
|
58 |
Creates customized instructions to generate an ideal customer profile
|
59 |
|
@@ -69,7 +69,7 @@ def create_instruction(product_service, skills, target_audience=None, gender=Non
|
|
69 |
str: Complete instructions to generate the profile
|
70 |
"""
|
71 |
# Obtener los componentes del formato din谩micamente
|
72 |
-
format_template = buyer_persona_formats.get(format_type, buyer_persona_formats["
|
73 |
|
74 |
# Intentar obtener el ejemplo correspondiente al formato seleccionado
|
75 |
# Convenci贸n: si el formato es "x_format", buscar "x_example"
|
@@ -77,10 +77,10 @@ def create_instruction(product_service, skills, target_audience=None, gender=Non
|
|
77 |
example_key = f"{format_base}_example"
|
78 |
|
79 |
# Si no existe un ejemplo espec铆fico, usar el ejemplo predeterminado
|
80 |
-
example =
|
81 |
|
82 |
# Solo incluir la secci贸n "Lo que realmente quiere" para el formato junguiano
|
83 |
-
if format_type == "
|
84 |
what_we_want = what_we_really_want["format"]
|
85 |
what_we_want_instruction = """
|
86 |
Give the reasons why they want what they want. Use **[WHAT WE REALLY WANT]** to answer that section.
|
|
|
53 |
THE ENTIRE RESPONSE MUST BE IN SPANISH, especially the section "Lo que realmente quiere".
|
54 |
For the section "Lo que realmente quiere" (What they really want), identify and focus on THE SINGLE MOST IMPORTANT underlying desire that drives this avatar. Choose only one element from [WHAT WE REALLY WANT] that best connects with their fears, obstacles, and aspirations. Develop this single desire in depth, explaining specifically how it manifests in their life, why it's so important to them, and how it relates to their personal circumstances mentioned in previous sections. Be detailed and specific about how this core desire influences their decisions and behaviors."""
|
55 |
|
56 |
+
def create_instruction(product_service, skills, target_audience=None, gender=None, consciousness_level="Ninguno", format_type="Jung's_Avatar"):
|
57 |
"""
|
58 |
Creates customized instructions to generate an ideal customer profile
|
59 |
|
|
|
69 |
str: Complete instructions to generate the profile
|
70 |
"""
|
71 |
# Obtener los componentes del formato din谩micamente
|
72 |
+
format_template = buyer_persona_formats.get(format_type, buyer_persona_formats["Jung's_Avatar"])
|
73 |
|
74 |
# Intentar obtener el ejemplo correspondiente al formato seleccionado
|
75 |
# Convenci贸n: si el formato es "x_format", buscar "x_example"
|
|
|
77 |
example_key = f"{format_base}_example"
|
78 |
|
79 |
# Si no existe un ejemplo espec铆fico, usar el ejemplo predeterminado
|
80 |
+
example = format_template.get("example", "")
|
81 |
|
82 |
# Solo incluir la secci贸n "Lo que realmente quiere" para el formato junguiano
|
83 |
+
if format_type == "Jung's_Avatar":
|
84 |
what_we_want = what_we_really_want["format"]
|
85 |
what_we_want_instruction = """
|
86 |
Give the reasons why they want what they want. Use **[WHAT WE REALLY WANT]** to answer that section.
|