JeCabrera commited on
Commit
e03d5ba
·
verified ·
1 Parent(s): 3d145ed

Upload 7 files

Browse files
Files changed (3) hide show
  1. app.py +4 -60
  2. bullets/__init__.py +4 -0
  3. bullets/generator.py +67 -0
app.py CHANGED
@@ -10,6 +10,9 @@ import docx
10
  from PIL import Image
11
  import io
12
 
 
 
 
13
  # Set page to wide mode to use full width
14
  st.set_page_config(layout="wide")
15
 
@@ -215,66 +218,7 @@ with col2:
215
  instruction += creative_hook_instruction
216
 
217
  # Add instruction for generating benefit bullets based on the promise
218
- bullet_points_instruction = """
219
- IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
220
-
221
- Start the bullets section with an introduction like:
222
- "Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"
223
-
224
- For the benefit bullets section:
225
-
226
- You are a world-class expert copywriter, experienced in creating benefits that emotionally connect and address the desires, problems, and motivations of the target audience.
227
-
228
- OBJECTIVE:
229
- - Generate 5 convincing and specific benefit bullets in Spanish
230
- - Connect emotionally with the audience
231
- - Address real desires, problems, and motivations
232
- - Maintain natural and conversational language
233
- - Orient each benefit towards action
234
-
235
- FORMAT RULES:
236
- - Each benefit must start with "• "
237
- - One benefit per line
238
- - No numbers at the beginning
239
- - No explanations or categories
240
- - Add a line break between each benefit
241
- - Never include : symbols in bullets
242
- - Never use exclamation marks (!) in any bullet
243
- - Each benefit must be a complete and concise phrase
244
- - Do not use any emojis in the bullets
245
- - Use natural, conversational language (avoid formal or technical jargon)
246
-
247
- BENEFIT STRUCTURE:
248
- - Must be relevant to target audience
249
- - Must show a specific result
250
- - Must include an emotional element
251
- - Must eliminate an objection or pain point
252
- - Must inspire immediate action
253
-
254
- EXAMPLE FORMAT:
255
- Además, al aprovechar esta oferta también obtendrás:
256
-
257
- •Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.
258
-
259
- • Domina las técnicas más efectivas para conquistar tu mercado, mientras mantienes el equilibrio entre trabajo y vida personal.
260
-
261
- • Implementa sistemas automatizados que hacen crecer tu empresa incluso mientras duermes, eliminando la necesidad de trabajar más horas.
262
-
263
- • Elimina la ansiedad de las ventas con un proceso estructurado y predecible que funciona incluso cuando duermes.
264
-
265
- • Transforma tu mentalidad de "vendedor insistente" a "asesor de confianza" que los clientes buscan y recomiendan.
266
-
267
- IMPORTANT:
268
- - Each benefit must be unique and specific
269
- - Avoid repetitions and generalities
270
- - Maintain a persuasive but honest tone
271
- - Adapt language to audience comprehension level
272
- - Focus on tangible and measurable results
273
- - Do not use emojis anywhere in the bullets
274
- - Write in a natural, conversational tone as if speaking directly to the reader
275
- - Never use exclamation marks in the bullets
276
- """
277
- instruction += bullet_points_instruction
278
 
279
  # Add additional context based on input type
280
  if st.session_state.input_type == "manual":
 
10
  from PIL import Image
11
  import io
12
 
13
+ # Import the bullet generator
14
+ from bullets.generator import create_bullet_instruction
15
+
16
  # Set page to wide mode to use full width
17
  st.set_page_config(layout="wide")
18
 
 
218
  instruction += creative_hook_instruction
219
 
220
  # Add instruction for generating benefit bullets based on the promise
221
+ instruction += create_bullet_instruction()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
 
223
  # Add additional context based on input type
224
  if st.session_state.input_type == "manual":
bullets/__init__.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from .generator import create_bullet_instruction
2
+
3
+ # Export the main function
4
+ __all__ = ['create_bullet_instruction']
bullets/generator.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def create_bullet_instruction():
2
+ """
3
+ Creates the instruction for generating benefit bullets.
4
+
5
+ Returns:
6
+ str: The complete instruction for generating bullets
7
+ """
8
+ bullet_points_instruction = """
9
+ IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
10
+
11
+ Start the bullets section with an introduction like:
12
+ "Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"
13
+
14
+ For the benefit bullets section:
15
+
16
+ You are a world-class expert copywriter, experienced in creating benefits that emotionally connect and address the desires, problems, and motivations of the target audience.
17
+
18
+ OBJECTIVE:
19
+ - Generate 5 convincing and specific benefit bullets in Spanish
20
+ - Connect emotionally with the audience
21
+ - Address real desires, problems, and motivations
22
+ - Maintain natural and conversational language
23
+ - Orient each benefit towards action
24
+
25
+ FORMAT RULES:
26
+ - Each benefit must start with "• "
27
+ - One benefit per line
28
+ - No numbers at the beginning
29
+ - No explanations or categories
30
+ - Add a line break between each benefit
31
+ - Never include : symbols in bullets
32
+ - Never use exclamation marks (!) in any bullet
33
+ - Each benefit must be a complete and concise phrase
34
+ - Do not use any emojis in the bullets
35
+ - Use natural, conversational language (avoid formal or technical jargon)
36
+
37
+ BENEFIT STRUCTURE:
38
+ - Must be relevant to target audience
39
+ - Must show a specific result
40
+ - Must include an emotional element
41
+ - Must eliminate an objection or pain point
42
+ - Must inspire immediate action
43
+
44
+ EXAMPLE FORMAT:
45
+ Además, al aprovechar esta oferta también obtendrás:
46
+
47
+ • Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.
48
+
49
+ • Domina las técnicas más efectivas para conquistar tu mercado, mientras mantienes el equilibrio entre trabajo y vida personal.
50
+
51
+ • Implementa sistemas automatizados que hacen crecer tu empresa incluso mientras duermes, eliminando la necesidad de trabajar más horas.
52
+
53
+ • Elimina la ansiedad de las ventas con un proceso estructurado y predecible que funciona incluso cuando duermes.
54
+
55
+ • Transforma tu mentalidad de "vendedor insistente" a "asesor de confianza" que los clientes buscan y recomiendan.
56
+
57
+ IMPORTANT:
58
+ - Each benefit must be unique and specific
59
+ - Avoid repetitions and generalities
60
+ - Maintain a persuasive but honest tone
61
+ - Adapt language to audience comprehension level
62
+ - Focus on tangible and measurable results
63
+ - Do not use emojis anywhere in the bullets
64
+ - Write in a natural, conversational tone as if speaking directly to the reader
65
+ - Never use exclamation marks in the bullets
66
+ """
67
+ return bullet_points_instruction