JeCabrera commited on
Commit
99716c8
·
verified ·
1 Parent(s): 4371e3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -34,10 +34,15 @@ def get_gemini_response(input_prompt, formula_type, length, mood, target_audienc
34
  - Tell the story in short paragraphs
35
  - End with a natural {cta_type} invitation
36
 
37
- IMPORTANT:
38
- - Do not include any formula labels or section markers in the output
39
- - Write the story as a continuous narrative without structural tags
40
- - Do not explain the formula parts, just apply them naturally
 
 
 
 
 
41
  """
42
  response = model.generate_content([full_prompt])
43
  return response.parts[0].text if response and response.parts else "Error al generar contenido."
 
34
  - Tell the story in short paragraphs
35
  - End with a natural {cta_type} invitation
36
 
37
+ CRITICAL INSTRUCTIONS:
38
+ - Output ONLY the story text
39
+ - DO NOT include any labels like (Problem), (Solution), etc.
40
+ - DO NOT include any structural markers or formula explanations
41
+ - Write as a continuous narrative with natural paragraph breaks
42
+ - The story should flow naturally between sections without any visible structure markers
43
+ - DO NOT explain or mention the formula parts in the text
44
+
45
+ Format: Clean story text with natural paragraphs, no labels, no explanations.
46
  """
47
  response = model.generate_content([full_prompt])
48
  return response.parts[0].text if response and response.parts else "Error al generar contenido."