Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,6 +180,32 @@ KEY ELEMENTS TO INCLUDE:
|
|
| 180 |
|
| 181 |
story_instruction = f"{system_prompt}\n\n"
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
# Añadir instrucciones sobre el producto y beneficios
|
| 184 |
story_instruction += f"""
|
| 185 |
PRODUCT INTEGRATION GUIDELINES:
|
|
|
|
| 180 |
|
| 181 |
story_instruction = f"{system_prompt}\n\n"
|
| 182 |
|
| 183 |
+
# Instrucciones específicas para GHA cuando hay story_topic
|
| 184 |
+
if formula_type == "GHA" and story_topic:
|
| 185 |
+
story_instruction += f"""
|
| 186 |
+
STORY TOPIC INTEGRATION GUIDELINES:
|
| 187 |
+
- The story topic "{story_topic}" MUST be the central theme of the narrative
|
| 188 |
+
- Build the entire story around this specific topic/experience
|
| 189 |
+
- Use the topic as the main hook to capture attention
|
| 190 |
+
- Weave the product naturally into this specific narrative
|
| 191 |
+
- Ensure the story feels authentic to the given topic
|
| 192 |
+
- Maintain the emotional core of the topic throughout
|
| 193 |
+
|
| 194 |
+
REQUIRED STORY ELEMENTS:
|
| 195 |
+
1. Opening hook must directly relate to "{story_topic}"
|
| 196 |
+
2. Story must maintain focus on this specific topic/experience
|
| 197 |
+
3. Product integration should feel natural within this context
|
| 198 |
+
4. Character development should align with the topic
|
| 199 |
+
5. Emotional journey must connect to the specific situation
|
| 200 |
+
6. Resolution should tie topic and product together seamlessly
|
| 201 |
+
|
| 202 |
+
STORY STRUCTURE FOR THIS TOPIC:
|
| 203 |
+
1. Hook: Begin with a compelling aspect of {story_topic}
|
| 204 |
+
2. Development: Explore the challenges/emotions related to this specific situation
|
| 205 |
+
3. Integration: Show how {product} naturally fits into this context
|
| 206 |
+
4. Resolution: Demonstrate transformation while staying true to the topic
|
| 207 |
+
"""
|
| 208 |
+
|
| 209 |
# Añadir instrucciones sobre el producto y beneficios
|
| 210 |
story_instruction += f"""
|
| 211 |
PRODUCT INTEGRATION GUIDELINES:
|