JeCabrera commited on
Commit
b171e09
·
verified ·
1 Parent(s): fbbbdc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +62 -22
app.py CHANGED
@@ -581,28 +581,68 @@ STORY DEVELOPMENT:
581
  # Instrucciones específicas para GHA cuando hay story_topic
582
  if formula_type == "GHA" and story_topic:
583
  story_instruction += f"""
584
- STORY TOPIC INTEGRATION GUIDELINES:
585
- - The story topic "{story_topic}" MUST be the central theme of the narrative
586
- - Build the entire story around this specific topic/experience
587
- - Use the topic as the first paragraph to capture attention
588
- - Weave the product naturally into this specific narrative
589
- - Ensure the story feels authentic to the given topic
590
- - Maintain the emotional core of the topic throughout
591
-
592
- REQUIRED STORY ELEMENTS:
593
- 1. Opening hook must directly relate to "{story_topic}"
594
- 2. Story must maintain focus on this specific topic/experience
595
- 3. Product integration should feel natural within this context
596
- 4. Character development should align with the topic
597
- 5. Emotional journey must connect to the specific situation
598
- 6. Resolution should tie topic and product together seamlessly
599
-
600
- STORY STRUCTURE FOR THIS TOPIC:
601
- 1. Hook: Begin with a compelling aspect of {story_topic}
602
- 2. Development: Explore the challenges/emotions related to this specific situation
603
- 3. Integration: Show how {product} naturally fits into this context
604
- 4. Resolution: Demonstrate transformation while staying true to the topic
605
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
 
607
  # Añadir instrucciones sobre el producto y beneficios
608
  story_instruction += f"""
 
581
  # Instrucciones específicas para GHA cuando hay story_topic
582
  if formula_type == "GHA" and story_topic:
583
  story_instruction += f"""
584
+ INTEGRACIÓN DEL TEMA CENTRAL EN LA HISTORIA:
585
+
586
+ TEMA PRINCIPAL: "{story_topic}"
587
+
588
+ 1. ESTRUCTURA NARRATIVA:
589
+ - Primer párrafo: Introduce el tema "{story_topic}" de forma cautivadora
590
+ - Desarrollo: Profundiza en la experiencia/situación relacionada con el tema
591
+ - Clímax: Momento de transformación donde el producto se integra naturalmente
592
+ - Cierre: Resolución que conecta el tema con la solución propuesta
593
+
594
+ 2. DESARROLLO DEL TEMA:
595
+ - Usa el tema como hilo conductor de toda la historia
596
+ - Describe situaciones específicas relacionadas con {story_topic}
597
+ - Incluye detalles y experiencias únicas del tema
598
+ - Mantén el foco en la perspectiva de {target_audience} sobre {story_topic}
599
+
600
+ 3. INTEGRACIÓN DEL PRODUCTO:
601
+ - NO menciones {product} hasta haber desarrollado bien el tema
602
+ - El producto debe surgir como solución natural a una situación del tema
603
+ - Conecta los beneficios de {product} con aspectos específicos de {story_topic}
604
+ - Mantén el protagonismo del tema por encima del producto
605
+
606
+ 4. ELEMENTOS OBLIGATORIOS:
607
+ - Mínimo 3 referencias específicas a {story_topic}
608
+ - Al menos 2 situaciones o momentos relacionados con el tema
609
+ - Una conexión clara entre el tema y la necesidad del producto
610
+ - Un cierre que refuerce la relación entre tema y solución
611
+
612
+ 5. VALIDACIONES:
613
+ - ¿La historia gira realmente en torno a {story_topic}?
614
+ - ¿Se mantiene el tema como elemento central?
615
+ - ¿La integración del producto es natural dentro del contexto del tema?
616
+ - ¿El llamado a la acción conecta con el tema desarrollado?
617
+
618
+ RECORDATORIO IMPORTANTE:
619
+ - La historia debe ser 100% sobre {story_topic}
620
+ - El producto es secundario al tema
621
+ - Cada párrafo debe contener elementos del tema
622
+ - La transformación debe estar directamente relacionada con {story_topic}
623
+ """
624
+
625
+ # Añadir ejemplos específicos para el tipo de tema
626
+ story_instruction += f"""
627
+ EJEMPLOS DE INTEGRACIÓN DEL TEMA:
628
+
629
+ Si el tema es una experiencia personal:
630
+ ❌ "Un día cualquiera..."
631
+ ✓ "Aquella mañana en [situación específica del tema]..."
632
+
633
+ Si el tema es una situación:
634
+ ❌ "Las personas suelen..."
635
+ ✓ "En medio de [detalle específico del tema]..."
636
+
637
+ Si el tema es un concepto:
638
+ ❌ "Todos queremos mejorar..."
639
+ ✓ "Cuando te enfrentas a [aspecto específico del tema]..."
640
+
641
+ ESTRUCTURA DEL PÁRRAFO INICIAL:
642
+ 1. Situación específica del {story_topic}
643
+ 2. Conexión emocional con {target_audience}
644
+ 3. Transición hacia el desarrollo
645
+ """
646
 
647
  # Añadir instrucciones sobre el producto y beneficios
648
  story_instruction += f"""