JeCabrera commited on
Commit
61f706c
verified
1 Parent(s): 48ca5b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -13,7 +13,7 @@ genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
13
  # Funci贸n para obtener una menci贸n del producto de manera probabil铆stica
14
  def get_random_product_mention():
15
  mentions = ["Directa", "Indirecta", "Metaf贸rica"]
16
- probabilities = [0.34, 0.33, 0.33]
17
  return random.choices(mentions, probabilities)[0]
18
 
19
  # Crear la instrucci贸n de menci贸n basada en la opci贸n seleccionada
@@ -32,12 +32,6 @@ def get_mention_instruction(product_mention, product):
32
  """
33
  return ""
34
 
35
- # System Prompt - Instrucci贸n en ingl茅s para el modelo
36
- system_instruction = """
37
- 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.
38
- Generate unusual, creative, and fascinating bullets that capture readers' attention about the product. Respond in Spanish and use a numbered list format. Important: Only answer bullets, never include explanations or categories, like this: 'La leyenda del padre soltero: Dice que nunca hay tiempo suficiente. El yoga te ense帽a a usar mejor el tiempo que tienes, incluso cuando te parece imposible(este bullet es cursioso).'.
39
- """
40
-
41
  # Funci贸n para obtener una cantidad de bullets
42
  def get_gemini_response_bullets(target_audience, product, num_bullets, creativity):
43
  product_mention = get_random_product_mention()
 
13
  # Funci贸n para obtener una menci贸n del producto de manera probabil铆stica
14
  def get_random_product_mention():
15
  mentions = ["Directa", "Indirecta", "Metaf贸rica"]
16
+ probabilities = [0.20, 0.30, 0.50] # Probabilidades ajustadas
17
  return random.choices(mentions, probabilities)[0]
18
 
19
  # Crear la instrucci贸n de menci贸n basada en la opci贸n seleccionada
 
32
  """
33
  return ""
34
 
 
 
 
 
 
 
35
  # Funci贸n para obtener una cantidad de bullets
36
  def get_gemini_response_bullets(target_audience, product, num_bullets, creativity):
37
  product_mention = get_random_product_mention()