Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ Generate unusual, creative, and fascinating bullets that capture readers' attent
|
|
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()
|
|
|
44 |
model_choice = "gemini-1.5-flash" # Modelo por defecto
|
45 |
|
46 |
model = genai.GenerativeModel(model_choice)
|
@@ -57,7 +58,7 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, creativit
|
|
57 |
* The Truth: 'The truth that you've never been told in school, or at home, about how to make a living from music.'
|
58 |
* Asking a Question: 'Did you know that...'
|
59 |
* 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.'
|
60 |
-
|
61 |
"""
|
62 |
|
63 |
response = model.generate_content([full_prompt])
|
|
|
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()
|
44 |
+
mention_instruction = get_mention_instruction(product_mention, product) # Define aqu铆
|
45 |
model_choice = "gemini-1.5-flash" # Modelo por defecto
|
46 |
|
47 |
model = genai.GenerativeModel(model_choice)
|
|
|
58 |
* The Truth: 'The truth that you've never been told in school, or at home, about how to make a living from music.'
|
59 |
* Asking a Question: 'Did you know that...'
|
60 |
* 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.'
|
61 |
+
{mention_instruction}.
|
62 |
"""
|
63 |
|
64 |
response = model.generate_content([full_prompt])
|