Spaces:
Sleeping
Sleeping
Upload 17 files
Browse files- app.py +10 -2
- formulas.py +45 -32
app.py
CHANGED
|
@@ -270,14 +270,15 @@ with col2:
|
|
| 270 |
# Get the response text
|
| 271 |
response_text = response.text
|
| 272 |
|
| 273 |
-
# Apply formatting to all formulas
|
| 274 |
# Obtener la configuraci贸n de formato para la f贸rmula actual
|
| 275 |
current_formula = st.session_state.formula_type
|
| 276 |
format_config = formula_formatting.get(current_formula, {
|
| 277 |
"uppercase_lines": [],
|
| 278 |
"spacing": "single",
|
| 279 |
"product_integration": False,
|
| 280 |
-
"replace_terms": []
|
|
|
|
| 281 |
})
|
| 282 |
|
| 283 |
# Aplicar formato seg煤n la configuraci贸n
|
|
@@ -289,6 +290,13 @@ with col2:
|
|
| 289 |
if line_index < len(lines):
|
| 290 |
lines[line_index] = lines[line_index].upper()
|
| 291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
# Eliminar l铆neas en blanco extras
|
| 293 |
lines = [line for line in lines if line.strip()]
|
| 294 |
|
|
|
|
| 270 |
# Get the response text
|
| 271 |
response_text = response.text
|
| 272 |
|
| 273 |
+
# Apply formatting to all formulas
|
| 274 |
# Obtener la configuraci贸n de formato para la f贸rmula actual
|
| 275 |
current_formula = st.session_state.formula_type
|
| 276 |
format_config = formula_formatting.get(current_formula, {
|
| 277 |
"uppercase_lines": [],
|
| 278 |
"spacing": "single",
|
| 279 |
"product_integration": False,
|
| 280 |
+
"replace_terms": [],
|
| 281 |
+
"capitalize_first_only": []
|
| 282 |
})
|
| 283 |
|
| 284 |
# Aplicar formato seg煤n la configuraci贸n
|
|
|
|
| 290 |
if line_index < len(lines):
|
| 291 |
lines[line_index] = lines[line_index].upper()
|
| 292 |
|
| 293 |
+
# Aplicar capitalizaci贸n solo a la primera letra en l铆neas espec铆ficas
|
| 294 |
+
for line_index in format_config.get("capitalize_first_only", []):
|
| 295 |
+
if line_index < len(lines) and lines[line_index].strip():
|
| 296 |
+
# Convertir a min煤sculas primero, luego capitalizar solo la primera letra
|
| 297 |
+
lines[line_index] = lines[line_index].lower()
|
| 298 |
+
lines[line_index] = lines[line_index][0].upper() + lines[line_index][1:]
|
| 299 |
+
|
| 300 |
# Eliminar l铆neas en blanco extras
|
| 301 |
lines = [line for line in lines if line.strip()]
|
| 302 |
|
formulas.py
CHANGED
|
@@ -383,31 +383,35 @@ SPECIFIC INSTRUCTIONS FOR THE REVEALING CONTRAST:
|
|
| 383 |
- Adjust according to the market sophistication level ({sophistication_level})
|
| 384 |
- Ensure the inspiring vision is attractive and aspirational
|
| 385 |
|
| 386 |
-
3.
|
| 387 |
-
-
|
| 388 |
-
-
|
| 389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
|
| 391 |
4. FORMAT RESTRICTIONS:
|
| 392 |
-
- Keep
|
| 393 |
-
-
|
| 394 |
-
-
|
| 395 |
-
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
-
|
| 400 |
-
-
|
| 401 |
-
-
|
| 402 |
-
-
|
| 403 |
-
|
| 404 |
-
[Inspiring vision that connects with their aspirations and desires]
|
| 405 |
-
|
| 406 |
-
[TRANSFORMATIVE SOLUTION IN CAPITAL LETTERS]
|
| 407 |
-
|
| 408 |
-
[Social proof + Positive emotional experience they will live]
|
| 409 |
"""
|
| 410 |
-
|
| 411 |
},
|
| 412 |
"Propuesta 脷nica de Valor": {
|
| 413 |
"description": """
|
|
@@ -460,14 +464,14 @@ The second line, in lowercase, that addresses fears, doubts, or limiting beliefs
|
|
| 460 |
"objections": "Aunque actualmente trabajes tiempo completo, no tengas experiencia en marketing digital o temas que tu nicho ya est茅 saturado"
|
| 461 |
},
|
| 462 |
"nivel_2_ejemplo2": {
|
| 463 |
-
"transformation": "
|
| 464 |
|
| 465 |
-
"objections": "Incluso si
|
| 466 |
},
|
| 467 |
"nivel_2_ejemplo3": {
|
| 468 |
-
"transformation": "
|
| 469 |
|
| 470 |
-
"objections": "Aunque
|
| 471 |
},
|
| 472 |
"nivel_3": {
|
| 473 |
"transformation": "ESCALA TU NEGOCIO DE SERVICIOS A 6 FIGURAS EN 6 MESES SIN TRABAJAR M脕S HORAS",
|
|
@@ -530,10 +534,15 @@ SPECIFIC INSTRUCTIONS FOR THE UNIQUE VALUE PROPOSITION:
|
|
| 530 |
- Include a specific timeframe when possible (en 30 d铆as, en 8 semanas)
|
| 531 |
- Focus on concrete, measurable results
|
| 532 |
- Create a clear vision of the destination
|
| 533 |
-
- Adapt to the market sophistication level
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 534 |
|
| 535 |
3. OBJECTIONS HANDLING:
|
| 536 |
-
- Begin with "
|
| 537 |
- Address the client's current situation
|
| 538 |
- Neutralize key objections about reaching the transformation
|
| 539 |
- Eliminate concerns about maintaining the new reality
|
|
@@ -551,6 +560,7 @@ SPECIFIC INSTRUCTIONS FOR THE UNIQUE VALUE PROPOSITION:
|
|
| 551 |
- Include specific timeframes when possible
|
| 552 |
- DO NOT repeat the same structure or approach between versions
|
| 553 |
- DO NOT include benefits or bonuses sections
|
|
|
|
| 554 |
"""
|
| 555 |
}
|
| 556 |
}
|
|
@@ -561,19 +571,22 @@ formula_formatting = {
|
|
| 561 |
"uppercase_lines": [1], # The second line (index 1) should be in uppercase
|
| 562 |
"spacing": "double", # Double spacing between lines
|
| 563 |
"product_integration": True, # Replace generic terms with product name
|
| 564 |
-
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"] # Terms to replace
|
|
|
|
| 565 |
},
|
| 566 |
"Contraste Revelador": {
|
| 567 |
"uppercase_lines": [1], # The solution line should be in uppercase
|
| 568 |
"spacing": "double", # Double spacing between lines
|
| 569 |
"product_integration": True, # Replace generic terms with product name
|
| 570 |
-
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"] # Terms to replace
|
|
|
|
| 571 |
},
|
| 572 |
"Propuesta 脷nica de Valor": {
|
| 573 |
-
"uppercase_lines": [
|
| 574 |
"spacing": "double", # Double spacing between lines
|
| 575 |
"product_integration": True, # Replace generic terms with product name
|
| 576 |
-
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"] # Terms to replace
|
|
|
|
| 577 |
}
|
| 578 |
}
|
| 579 |
|
|
|
|
| 383 |
- Adjust according to the market sophistication level ({sophistication_level})
|
| 384 |
- Ensure the inspiring vision is attractive and aspirational
|
| 385 |
|
| 386 |
+
3. TRANSFORMATIVE SOLUTION CREATION:
|
| 387 |
+
- Begin with a powerful action verb in ALL CAPS
|
| 388 |
+
- For sophistication level 3 and above, naturally integrate the product/service name:
|
| 389 |
+
* Replace generic terms like "sistema" or "m茅todo" with the specific product name
|
| 390 |
+
* Position the product/service as the key enabler of the transformation
|
| 391 |
+
* Format as "[VERBO] CON [NOMBRE DEL PRODUCTO/SERVICIO] Y [RESULTADO ESPEC脥FICO]"
|
| 392 |
+
* If no product name is provided, use a descriptive term based on the industry
|
| 393 |
+
|
| 394 |
+
3. OBJECTIONS HANDLING:
|
| 395 |
+
- Begin with "incluso si" or "aunque"
|
| 396 |
+
- Address the client's current situation
|
| 397 |
+
- Neutralize key objections about reaching the transformation
|
| 398 |
+
- Eliminate concerns about maintaining the new reality
|
| 399 |
+
- Validate the client's worries in a way that increases credibility
|
| 400 |
|
| 401 |
4. FORMAT RESTRICTIONS:
|
| 402 |
+
- Keep the transformation statement concise and powerful
|
| 403 |
+
- Make objections relatable and honest
|
| 404 |
+
- DO NOT include benefits or bonuses sections (these will be handled separately)
|
| 405 |
+
- Ensure each version is truly unique in its approach
|
| 406 |
+
|
| 407 |
+
5. IMPORTANT GUIDELINES:
|
| 408 |
+
- Create 3 COMPLETELY DIFFERENT versions
|
| 409 |
+
- Use different action verbs in each promise
|
| 410 |
+
- Include specific timeframes when possible
|
| 411 |
+
- DO NOT repeat the same structure or approach between versions
|
| 412 |
+
- DO NOT include benefits or bonuses sections
|
| 413 |
+
- For sophistication levels 3+, always feature the product/service name prominently
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
"""
|
|
|
|
| 415 |
},
|
| 416 |
"Propuesta 脷nica de Valor": {
|
| 417 |
"description": """
|
|
|
|
| 464 |
"objections": "Aunque actualmente trabajes tiempo completo, no tengas experiencia en marketing digital o temas que tu nicho ya est茅 saturado"
|
| 465 |
},
|
| 466 |
"nivel_2_ejemplo2": {
|
| 467 |
+
"transformation": "DOMINA EL ARTE DE LA COMUNICACI脫N PERSUASIVA Y DUPLICA TUS CONVERSIONES EN 60 D脥AS",
|
| 468 |
|
| 469 |
+
"objections": "Incluso si te consideras introvertido, has tenido malas experiencias con ventas o crees que la persuasi贸n es manipulativa"
|
| 470 |
},
|
| 471 |
"nivel_2_ejemplo3": {
|
| 472 |
+
"transformation": "TRANSFORMA TU CUERPO Y RECUPERA TU ENERG脥A EN SOLO 12 SEMANAS SIN DIETAS RESTRICTIVAS",
|
| 473 |
|
| 474 |
+
"objections": "Aunque hayas intentado m煤ltiples programas sin resultados duraderos, tengas poco tiempo para ejercicio o disfrutes comiendo lo que te gusta"
|
| 475 |
},
|
| 476 |
"nivel_3": {
|
| 477 |
"transformation": "ESCALA TU NEGOCIO DE SERVICIOS A 6 FIGURAS EN 6 MESES SIN TRABAJAR M脕S HORAS",
|
|
|
|
| 534 |
- Include a specific timeframe when possible (en 30 d铆as, en 8 semanas)
|
| 535 |
- Focus on concrete, measurable results
|
| 536 |
- Create a clear vision of the destination
|
| 537 |
+
- Adapt to the market sophistication level ({sophistication_level})
|
| 538 |
+
- For sophistication level 3 and above, naturally integrate the product/service name:
|
| 539 |
+
* Replace generic terms like "sistema" or "m茅todo" with the specific product name
|
| 540 |
+
* Position the product/service as the key enabler of the transformation
|
| 541 |
+
* Format as "[VERBO] CON [NOMBRE DEL PRODUCTO/SERVICIO] Y [RESULTADO ESPEC脥FICO]"
|
| 542 |
+
* If no product name is provided, use a descriptive term based on the industry
|
| 543 |
|
| 544 |
3. OBJECTIONS HANDLING:
|
| 545 |
+
- Begin with "Incluso si" or "Aunque" (first letter capitalized, rest lowercase)
|
| 546 |
- Address the client's current situation
|
| 547 |
- Neutralize key objections about reaching the transformation
|
| 548 |
- Eliminate concerns about maintaining the new reality
|
|
|
|
| 560 |
- Include specific timeframes when possible
|
| 561 |
- DO NOT repeat the same structure or approach between versions
|
| 562 |
- DO NOT include benefits or bonuses sections
|
| 563 |
+
- For sophistication levels 3+, always feature the product/service name prominently in a natural, conversational way
|
| 564 |
"""
|
| 565 |
}
|
| 566 |
}
|
|
|
|
| 571 |
"uppercase_lines": [1], # The second line (index 1) should be in uppercase
|
| 572 |
"spacing": "double", # Double spacing between lines
|
| 573 |
"product_integration": True, # Replace generic terms with product name
|
| 574 |
+
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"], # Terms to replace
|
| 575 |
+
"capitalize_first_only": [0, 2] # Capitalize only first letter for headline and subtitle (lines 0 and 2)
|
| 576 |
},
|
| 577 |
"Contraste Revelador": {
|
| 578 |
"uppercase_lines": [1], # The solution line should be in uppercase
|
| 579 |
"spacing": "double", # Double spacing between lines
|
| 580 |
"product_integration": True, # Replace generic terms with product name
|
| 581 |
+
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"], # Terms to replace
|
| 582 |
+
"capitalize_first_only": [0, 2] # Capitalize only first letter for vision and result (lines 0 and 2)
|
| 583 |
},
|
| 584 |
"Propuesta 脷nica de Valor": {
|
| 585 |
+
"uppercase_lines": [0], # The first line (transformation) should be in uppercase
|
| 586 |
"spacing": "double", # Double spacing between lines
|
| 587 |
"product_integration": True, # Replace generic terms with product name
|
| 588 |
+
"replace_terms": ["sistema", "m茅todo", "programa", "soluci贸n"], # Terms to replace
|
| 589 |
+
"capitalize_first_only": [1] # Capitalize only first letter for objections (line 1)
|
| 590 |
}
|
| 591 |
}
|
| 592 |
|