Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,8 @@ def get_gemini_response(target_audience, product, text_type, length, mood, model
|
|
| 58 |
|
| 59 |
# Crear el prompt completo basado en los campos del frontend
|
| 60 |
full_prompt = f"""
|
| 61 |
-
You are a creative writer skilled in the art of persuasion.
|
| 62 |
-
Create an opening paragraph for a {text_type} that makes {target_audience} aware they have a problem by explaining it with real-life situations, using a natural or conversational tone. The goal of this paragraph is to make them want to keep reading and find out what {product} is about. Use persuasion effectively in every word, mastering advanced techniques like using powerful headlines and intriguing openings.
|
| 63 |
|
| 64 |
To write this opening paragraph, use one or more of these Copywriting Techniques, choosing the most appropriate ones:
|
| 65 |
|
|
@@ -88,7 +88,7 @@ with st.sidebar:
|
|
| 88 |
target_audience = st.text_input("¿Quién es tu público objetivo?")
|
| 89 |
product = st.text_input("Nombre del producto:")
|
| 90 |
text_type = st.selectbox("Tipo de texto:", ["Historia", "Carta de venta", "Correo", "Landing page"])
|
| 91 |
-
length = st.slider("Longitud del texto:", 50, 1000, 300)
|
| 92 |
mood = st.selectbox("Estado de ánimo:", ["Feliz", "Triste", "Motivador", "Reflexivo"])
|
| 93 |
model_choice = st.selectbox("Selecciona el modelo:", ["gemini-1.5-flash", "gemini-1.5-pro"])
|
| 94 |
|
|
|
|
| 58 |
|
| 59 |
# Crear el prompt completo basado en los campos del frontend
|
| 60 |
full_prompt = f"""
|
| 61 |
+
You are a creative writer skilled in the art of persuasion. The tone of the {text_type} should be {mood} and carefully crafted to emotionally resonate with a {target_audience}. {mention_instruction} {format_instruction} 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.
|
| 62 |
+
Create an opening paragraph for a {text_type} of {length} words in Spanish, that makes {target_audience} aware they have a problem by explaining it with real-life situations, using a natural or conversational tone. The goal of this paragraph is to make them want to keep reading and find out what {product} is about. Use persuasion effectively in every word, mastering advanced techniques like using powerful headlines and intriguing openings.
|
| 63 |
|
| 64 |
To write this opening paragraph, use one or more of these Copywriting Techniques, choosing the most appropriate ones:
|
| 65 |
|
|
|
|
| 88 |
target_audience = st.text_input("¿Quién es tu público objetivo?")
|
| 89 |
product = st.text_input("Nombre del producto:")
|
| 90 |
text_type = st.selectbox("Tipo de texto:", ["Historia", "Carta de venta", "Correo", "Landing page"])
|
| 91 |
+
length = st.slider("Longitud del texto en palabras:", 50, 1000, 300)
|
| 92 |
mood = st.selectbox("Estado de ánimo:", ["Feliz", "Triste", "Motivador", "Reflexivo"])
|
| 93 |
model_choice = st.selectbox("Selecciona el modelo:", ["gemini-1.5-flash", "gemini-1.5-pro"])
|
| 94 |
|