JeCabrera commited on
Commit
063a515
·
verified ·
1 Parent(s): 09f09fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -32,10 +32,12 @@ 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}.
 
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
+ 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 always be written in the second person (using 'tú') and should have unexpected twists to engage the {target_audience}.
37
  The story should have {length} words, with a {mood} tone. Here are the details:
38
+
39
+ 1. Antes: Describe the current problem and frustrations that you {target_audience} are facing. Create an immersive situation where the reader can recognize themselves.
40
+ 2. Después: Paint a desired scenario where the problem of {target_audience} is solved and the benefits are clearly evident. Use a surprising twist to show how life can change.
41
  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.
42
  Ensure that the story has a creative flow with unexpected turns and keeps the reader hooked, motivating them to act at the end.
43
  Write a cohesive, engaging, and emotionally resonant narrative tailored to connect deeply with you, the {target_audience}.