JeCabrera commited on
Commit
09f09fc
·
verified ·
1 Parent(s): 2738dfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -31,14 +31,14 @@ def get_pasa_response(target_audience, product, action, mood, length):
31
  def get_adp_response(target_audience, product, action, mood, length):
32
  model = genai.GenerativeModel("gemini-1.5-flash")
33
  full_prompt = f"""
34
- You are a skilled copywriter and storyteller. Create a persuasive story in Spanish following the A.D.P. formula (Antes, Después, Puente).
35
- Do not explicitly label or explain each section (Antes, Después, Puente). Instead, weave these elements naturally into a cohesive, flowing narrative that emotionally connects with the {target_audience}.
36
  The story should have {length} words, with a {mood} tone. Here are the details:
37
- 1. Antes: Describe the current problem and frustrations that the {target_audience} is facing.
38
- 2. Después: Paint a desired scenario where the problem is solved and the benefits are evident.
39
- 3. Puente: Introduce your solution '{product}' as the logical bridge between the current frustration and the desired result.
40
- The solution should be your product, and the bridge should include a call to action '{action}' inviting the reader to take action.
41
- Write a cohesive, engaging, and emotionally resonant narrative tailored to connect with the {target_audience}.
42
  """
43
  response = model.generate_content([full_prompt])
44
  if response and response.parts:
 
31
  def get_adp_response(target_audience, product, action, mood, length):
32
  model = genai.GenerativeModel("gemini-1.5-flash")
33
  full_prompt = f"""
34
+ You are a skilled copywriter and storyteller. Create a creative and persuasive story in Spanish following the A.D.P. formula (Antes, Después, Puente).
35
+ The story should always be written in the second person (using 'tú') and should have unexpected twists to engage the reader.
36
  The story should have {length} words, with a {mood} tone. Here are the details:
37
+ 1. Antes: Describe the current problem and frustrations that you (the reader) are facing. Create an immersive situation where the reader can recognize themselves.
38
+ 2. Después: Paint a desired scenario where the problem is solved and the benefits are clearly evident. Use a surprising twist to show how life can change.
39
+ 3. Puente: Introduce your solution '{product}' as the logical bridge between your frustration and the desired result. Make sure to emphasize the transformation you’ll experience if you take action '{action}'. Conclude with a compelling call to action '{action}' inviting the reader to take immediate steps to improve their situation.
40
+ Ensure that the story has a creative flow with unexpected turns and keeps the reader hooked, motivating them to act at the end.
41
+ Write a cohesive, engaging, and emotionally resonant narrative tailored to connect deeply with you, the {target_audience}.
42
  """
43
  response = model.generate_content([full_prompt])
44
  if response and response.parts: