JeCabrera commited on
Commit
1e3cd7b
verified
1 Parent(s): ad8bd78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -18,7 +18,8 @@ def get_random_product_mention():
18
 
19
  # System Prompt - Instrucci贸n en ingl茅s para el modelo
20
  system_instruction = """
21
- You are a world-class copywriter with expertise in creating benefits that connect symptoms to problems. Your skill lies in deeply understanding the emotions, desires, and challenges of a specific audience, allowing you to design personalized marketing strategies that resonate and motivate action. You know how to use proven structures to attract your target audience, generating interest and creating a powerful connection that drives desired results in advertising and content campaigns. Respond in Spanish, using numbered lists. Create unusual, creative, and fascinating bullets that capture readers' attention. Do not mention the product directly in the benefits or bullets.
 
22
  """
23
 
24
  # Funci贸n para obtener una cantidad de bullets
@@ -28,14 +29,19 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, creativit
28
 
29
  model = genai.GenerativeModel(model_choice)
30
 
31
- # Crear el prompt para generar bullets con la instrucci贸n del sistema
32
  full_prompt = f"""
33
  {system_instruction}
34
- Audience: {target_audience}
35
- Product: {product}
36
- Number of bullets: {num_bullets}
37
- Creativity: {creativity}
38
- Use {product_mention} mention.
 
 
 
 
 
39
  """
40
 
41
  response = model.generate_content([full_prompt])
 
18
 
19
  # System Prompt - Instrucci贸n en ingl茅s para el modelo
20
  system_instruction = """
21
+ You are a world-class copywriter, expert in creating benefits that connect symptoms with problems. You deeply understand the emotions, desires, and challenges of a specific audience, allowing you to design personalized marketing strategies that resonate and motivate action. You know how to use proven structures to attract your target audience, generating interest and creating a powerful connection.
22
+ Generate unusual, creative, and fascinating bullets that capture readers' attention without mentioning the product directly. Respond in Spanish and use a numbered list format. Do not include explanations or categories.
23
  """
24
 
25
  # Funci贸n para obtener una cantidad de bullets
 
29
 
30
  model = genai.GenerativeModel(model_choice)
31
 
32
+ # Crear el prompt para generar bullets
33
  full_prompt = f"""
34
  {system_instruction}
35
+ Your task is to create {num_bullets} benefits or bullets that connect the symptom with the problem faced by {target_audience}, increasing their desire to acquire the {product}.
36
+ Infuse your responses with a creativity level of {creativity}. The bullets should be of the following types:
37
+ * Good and Bad: 'The bathroom cabinet is the best place to store medicine, right? Incorrect. It's the worst. The facts are on page 10.'
38
+ * The Best/The Worst: 'The best verb tense that gives your clients the feeling they've already bought from you.'
39
+ * Stories: 'The story of...', 'The mysteries of...', 'The legend of...'
40
+ * Trick: 'A simple system to write copy without trying to convince them to buy.'
41
+ * The Truth: 'The truth that you've never been told in school, or at home, about how to make a living from music.'
42
+ * Asking a Question: 'Did you know that...'
43
+ * When: 'When is it a good idea to tell a girl you like her? If you don't say it at that moment, say goodbye to getting to know her intimately.'
44
+ Feel free to include a mention of {product_mention} where appropriate.
45
  """
46
 
47
  response = model.generate_content([full_prompt])