Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,9 +13,7 @@ def get_gemini_response(target_audience, product, text_type, length, language, m
|
|
| 13 |
|
| 14 |
# Crear el prompt completo basado en los campos del frontend
|
| 15 |
full_prompt = f"""
|
| 16 |
-
|
| 17 |
-
El {text_type} debe ser {mood}, dirigido a este público objetivo: {target_audience}, y relacionado con el producto: "{product}".
|
| 18 |
-
Asegúrate de que contenga elementos realistas y emocionales.
|
| 19 |
"""
|
| 20 |
|
| 21 |
response = model.generate_content([full_prompt])
|
|
|
|
| 13 |
|
| 14 |
# Crear el prompt completo basado en los campos del frontend
|
| 15 |
full_prompt = f"""
|
| 16 |
+
You are a creative writer skilled in the art of persuasion. Write a {length} {text_type} in {language}. The tone of the {text_type} should be {mood} and carefully crafted to emotionally resonate with a {target_audience}. Ensure that subtle and realistic references to the product '{product}' are included without explicitly mentioning it. Use persuasive techniques to guide the reader towards an intuitive understanding of the product’s benefits, focusing on creating a strong emotional connection with the audience.
|
|
|
|
|
|
|
| 17 |
"""
|
| 18 |
|
| 19 |
response = model.generate_content([full_prompt])
|