JeCabrera commited on
Commit
6cfedcb
verified
1 Parent(s): 10dbbd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -20,16 +20,24 @@ def get_gemini_response(target_audience, product, product_mention, text_type, le
20
  elif product_mention == "Metaf贸rica":
21
  mention_instruction = f"Refer to the product '{product}' through a metaphor without explicitly mentioning it."
22
 
23
- # Instrucci贸n espec铆fica para el tipo de texto
24
  format_instruction = ""
25
  if text_type == "Historia":
26
- format_instruction = "Ensure that the narrative is engaging and includes character development, a clear plot, and a resolution."
 
 
27
  elif text_type == "Carta de venta":
28
- format_instruction = "Craft a compelling sales pitch that highlights the product's benefits and persuades the reader to take action."
 
 
29
  elif text_type == "Correo":
30
- format_instruction = "Write a concise and engaging email that captures the reader's attention and encourages a response."
 
 
31
  elif text_type == "Landing page":
32
- format_instruction = "Design an informative and persuasive landing page that effectively showcases the product and drives conversions."
 
 
33
 
34
  # Crear el prompt completo basado en los campos del frontend
35
  full_prompt = f"""
 
20
  elif product_mention == "Metaf贸rica":
21
  mention_instruction = f"Refer to the product '{product}' through a metaphor without explicitly mentioning it."
22
 
23
+ # Instrucci贸n espec铆fica para el tipo de texto
24
  format_instruction = ""
25
  if text_type == "Historia":
26
+ format_instruction = """
27
+ Write an engaging opening paragraph that introduces a relatable problem your audience is facing. Stir emotions by highlighting the impact of the problem on their life, and create curiosity with hints of a potential solution without revealing everything. Ensure that the narrative captivates the reader, leaving them wanting to discover how the story unfolds.
28
+ """
29
  elif text_type == "Carta de venta":
30
+ format_instruction = """
31
+ Craft a persuasive lead paragraph for a sales letter that quickly identifies a common pain point your reader is experiencing. Agitate the problem by emphasizing the negative consequences of not addressing it, and tease the possibility of a solution to spark curiosity and compel the reader to continue reading for the answer.
32
+ """
33
  elif text_type == "Correo":
34
+ format_instruction = """
35
+ Write a concise but impactful opening paragraph for an email that immediately captures the reader鈥檚 attention by acknowledging a challenge they are likely facing. Agitate the problem by emphasizing how it might be affecting their daily life, and leave them intrigued by hinting at a valuable solution that will be revealed if they continue reading.
36
+ """
37
  elif text_type == "Landing page":
38
+ format_instruction = """
39
+ Design a compelling first paragraph for a landing page that immediately draws attention to a significant problem your target audience is encountering. Stir emotions by describing the frustrations or difficulties this issue causes and entice them to keep scrolling by subtly suggesting a solution without giving too much away.
40
+ """
41
 
42
  # Crear el prompt completo basado en los campos del frontend
43
  full_prompt = f"""