Spaces:
Sleeping
Sleeping
Update formulas.py
Browse files- formulas.py +10 -14
formulas.py
CHANGED
@@ -36,14 +36,12 @@ def create_offer_instruction(avatar_description, product_name, selected_formula_
|
|
36 |
additional_instructions = """
|
37 |
SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
38 |
1. PRODUCT/SERVICE NAME HANDLING:
|
39 |
-
- CRITICAL: If a product name is provided
|
40 |
-
|
41 |
-
-
|
42 |
-
- If this extracted name is not empty, use it EXACTLY as provided with no modifications
|
43 |
-
- Only create a new name if the extracted name is empty or contains generic placeholders
|
44 |
|
45 |
2. Analyze ALL available information:
|
46 |
-
- Product/service name (use the
|
47 |
- Target audience description (avatar_description)
|
48 |
- Content from uploaded files (if any)
|
49 |
|
@@ -54,7 +52,7 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
|
54 |
|
55 |
4. Create a comprehensive offer by combining:
|
56 |
- The appropriate type (determined in step 3)
|
57 |
-
- The EXACT product name as
|
58 |
- A compelling dream based on avatar_description
|
59 |
- A relevant obstacle based on avatar_description
|
60 |
|
@@ -77,17 +75,15 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
|
77 |
- "Ahora puedes acceder a un..."
|
78 |
- "Tenemos para ti un..."
|
79 |
- "Disfruta de un..."
|
80 |
-
"""
|
81 |
|
82 |
elif selected_formula_name == "Oferta Dorada":
|
83 |
additional_instructions = """
|
84 |
SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
85 |
1. PRODUCT/SERVICE NAME HANDLING:
|
86 |
-
- CRITICAL: If a product name is provided in
|
87 |
-
|
88 |
-
-
|
89 |
-
- If this extracted name is not empty, use it EXACTLY as provided with no modifications
|
90 |
-
- If no product name is provided or extracted, DO NOT create or add ANY name
|
91 |
- DO NOT invent names like "ProExpert", "Sistema Profesional", "método XYZ", etc.
|
92 |
- DO NOT add product names like "curso", "programa", etc. unless they were explicitly provided
|
93 |
- For the third line, use generic terms like "Con nuestra metodología", "Mediante este sistema",
|
@@ -189,7 +185,7 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
|
189 |
- "Optimizarás tu rendimiento físico y mental desde la primera semana. El 89% de nuestros clientes ejecutivos reportan un aumento del 67% en productividad y un 45% menos de estrés."
|
190 |
- "Generarás ingresos pasivos mientras duermes. Nuestro grupo de 200 emprendedores ha facturado colectivamente más de $3.5M en los últimos 12 meses, con una media de 4 horas de trabajo semanal."
|
191 |
- "Duplicarás tus conversiones en ventas online. Basado en datos de más de 150 negocios que han implementado estas estrategias, el incremento promedio en ventas ha sido del 127% en los primeros 60 días."
|
192 |
-
"""
|
193 |
|
194 |
# Create the instruction using the system prompt at the beginning
|
195 |
instruction = f"""{offer_system_prompt}
|
|
|
36 |
additional_instructions = """
|
37 |
SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
38 |
1. PRODUCT/SERVICE NAME HANDLING:
|
39 |
+
- CRITICAL: If a product name is provided, YOU MUST USE THAT EXACT NAME. This is non-negotiable.
|
40 |
+
- If the product name is not empty, use it EXACTLY as provided with no modifications
|
41 |
+
- Only create a new name if no product name is provided or it contains generic placeholders
|
|
|
|
|
42 |
|
43 |
2. Analyze ALL available information:
|
44 |
+
- Product/service name (use the name provided)
|
45 |
- Target audience description (avatar_description)
|
46 |
- Content from uploaded files (if any)
|
47 |
|
|
|
52 |
|
53 |
4. Create a comprehensive offer by combining:
|
54 |
- The appropriate type (determined in step 3)
|
55 |
+
- The EXACT product name as provided (if available)
|
56 |
- A compelling dream based on avatar_description
|
57 |
- A relevant obstacle based on avatar_description
|
58 |
|
|
|
75 |
- "Ahora puedes acceder a un..."
|
76 |
- "Tenemos para ti un..."
|
77 |
- "Disfruta de un..."
|
78 |
+
"""
|
79 |
|
80 |
elif selected_formula_name == "Oferta Dorada":
|
81 |
additional_instructions = """
|
82 |
SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
83 |
1. PRODUCT/SERVICE NAME HANDLING:
|
84 |
+
- CRITICAL: If a product name is provided, YOU MUST USE THAT EXACT NAME in one of the three lines of the offer.
|
85 |
+
- If a product name is provided, use it EXACTLY as provided with no modifications
|
86 |
+
- If no product name is provided, DO NOT create or add ANY name
|
|
|
|
|
87 |
- DO NOT invent names like "ProExpert", "Sistema Profesional", "método XYZ", etc.
|
88 |
- DO NOT add product names like "curso", "programa", etc. unless they were explicitly provided
|
89 |
- For the third line, use generic terms like "Con nuestra metodología", "Mediante este sistema",
|
|
|
185 |
- "Optimizarás tu rendimiento físico y mental desde la primera semana. El 89% de nuestros clientes ejecutivos reportan un aumento del 67% en productividad y un 45% menos de estrés."
|
186 |
- "Generarás ingresos pasivos mientras duermes. Nuestro grupo de 200 emprendedores ha facturado colectivamente más de $3.5M en los últimos 12 meses, con una media de 4 horas de trabajo semanal."
|
187 |
- "Duplicarás tus conversiones en ventas online. Basado en datos de más de 150 negocios que han implementado estas estrategias, el incremento promedio en ventas ha sido del 127% en los primeros 60 días."
|
188 |
+
"""
|
189 |
|
190 |
# Create the instruction using the system prompt at the beginning
|
191 |
instruction = f"""{offer_system_prompt}
|