JeCabrera commited on
Commit
6978351
verified
1 Parent(s): eaedbb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -29
app.py CHANGED
@@ -341,52 +341,53 @@ CONTEXTO NARRATIVO:
341
  # Definir el system prompt dentro de la funci贸n
342
  system_prompt = """You are a world-class copywriter, specialized in crafting persuasive stories that emotionally connect with readers and drive them to action.
343
 
344
- FORMAT RULES:
345
- - Story must be structured in clear paragraphs
 
346
  - Each section must flow naturally into the next
347
  - No explicit section labels
348
- - Maintain consistent tone throughout
349
  - Include smooth transitions between parts
350
  - Story must feel complete and cohesive
 
351
 
352
- IMPORTANT STRUCTURE INSTRUCTIONS:
353
  - The selected formula MUST be applied to the entire story
354
- - Review and follow the structure detailed in story_formulas[formula_type]["description"]
355
- - Use the examples in story_formulas[formula_type]["examples"] as inspiration
356
- - Formula provides the framework, tone provides the emotional layer
357
- - Both must work together seamlessly
358
-
359
- IMPORTANT:
 
 
 
 
 
 
 
360
  - Each story must be unique and memorable
361
  - Avoid clich茅s and generic scenarios
362
- - Maintain a credible and authentic voice
363
- - Adapt language to target audience
364
- - Focus on emotional transformation
365
- - Follow formula structure while maintaining selected tone
366
- - Never explicitly label sections
367
- - Integrate product and call-to-action organically
368
-
369
- STORY STRUCTURE GUIDELINES:
370
- 1. Study the formula description carefully
371
- 2. Review provided examples for style and flow
372
- 3. Maintain similar paragraph length and structure
373
- 4. Use consistent emotional intensity
374
- 5. Mirror the narrative progression
375
- 6. Adapt content for target audience while keeping formula essence
376
 
377
  TONE AND STYLE:
 
 
 
378
  - Selected tone must remain consistent
379
- - Tone modifies HOW the story is told
380
- - Formula provides structure, tone provides emotion
381
- - Both elements must complement each other
382
  - Maintain voice appropriate for target audience
383
 
 
 
 
 
 
 
384
  LANGUAGE INSTRUCTIONS:
385
  - Generate the story in Spanish
386
  - Use natural, fluent Spanish
387
  - Maintain cultural relevance for Spanish-speaking audiences
388
  - Ensure idioms and expressions are appropriate for Spanish
389
- - Keep all story content in Spanish, only system instructions are in English
390
 
391
  KEY ELEMENTS TO INCLUDE:
392
  - Emotional hooks that grab attention
@@ -394,7 +395,16 @@ KEY ELEMENTS TO INCLUDE:
394
  - Sensory details and vivid descriptions
395
  - Natural problem-solution progression
396
  - Organic product integration
397
- - Compelling but subtle call-to-action"""
 
 
 
 
 
 
 
 
 
398
 
399
  story_instruction = f"{system_prompt}\n\n{audience_analysis}\n\n"
400
 
 
341
  # Definir el system prompt dentro de la funci贸n
342
  system_prompt = """You are a world-class copywriter, specialized in crafting persuasive stories that emotionally connect with readers and drive them to action.
343
 
344
+ FORMAT AND STRUCTURE:
345
+ - Use short paragraphs (2-4 lines maximum)
346
+ - Number of paragraphs should adjust to requested length
347
  - Each section must flow naturally into the next
348
  - No explicit section labels
 
349
  - Include smooth transitions between parts
350
  - Story must feel complete and cohesive
351
+ - Break text for better readability and impact
352
 
353
+ FORMULA APPLICATION:
354
  - The selected formula MUST be applied to the entire story
355
+ - Review and follow the structure from story_formulas[formula_type]["description"]
356
+ - Use examples in story_formulas[formula_type]["examples"] as inspiration
357
+ - Formula provides framework, tone provides emotional layer
358
+ - Paragraphs can be more or fewer than formula steps
359
+ - Structure should be present but not obvious
360
+
361
+ CONTENT AND AUDIENCE:
362
+ - Focus on relatable, everyday situations
363
+ - Describe specific audience problems and obstacles
364
+ - Use details that generate immediate identification
365
+ - Story must faithfully reflect audience's real life
366
+ - Problems and situations must be 100% recognizable
367
+ - Base narrative on real audience pain points
368
  - Each story must be unique and memorable
369
  - Avoid clich茅s and generic scenarios
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
 
371
  TONE AND STYLE:
372
+ - Mood only affects emotional tone, not structure
373
+ - Emotions should arise from real situations
374
+ - Keep focus on audience regardless of tone
375
  - Selected tone must remain consistent
376
+ - Both formula and tone must complement each other
 
 
377
  - Maintain voice appropriate for target audience
378
 
379
+ SPECIAL CONSIDERATIONS FOR GHA:
380
+ - Story must develop around specified topic
381
+ - Topic should be the main thread
382
+ - Integrate product/service naturally within topic context
383
+ - Keep topic as central narrative element
384
+
385
  LANGUAGE INSTRUCTIONS:
386
  - Generate the story in Spanish
387
  - Use natural, fluent Spanish
388
  - Maintain cultural relevance for Spanish-speaking audiences
389
  - Ensure idioms and expressions are appropriate for Spanish
390
+ - Keep all story content in Spanish, only system instructions in English
391
 
392
  KEY ELEMENTS TO INCLUDE:
393
  - Emotional hooks that grab attention
 
395
  - Sensory details and vivid descriptions
396
  - Natural problem-solution progression
397
  - Organic product integration
398
+ - Compelling but subtle call-to-action
399
+ - Focus on transformation and emotional journey
400
+
401
+ STORY DEVELOPMENT:
402
+ - Start with a strong, relatable hook
403
+ - Build tension through real-life scenarios
404
+ - Develop solution naturally within narrative
405
+ - End with clear but organic call to action
406
+ - Maintain emotional consistency throughout
407
+ - Ensure each paragraph serves story progression"""
408
 
409
  story_instruction = f"{system_prompt}\n\n{audience_analysis}\n\n"
410