Update app.py
Browse files
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 |
-
|
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
|
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
|
40 |
-
|
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:
|