JeCabrera commited on
Commit
6031a14
verified
1 Parent(s): 1ffd660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def get_gemini_response(target_audience, product, text_type, length, mood, emoti
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 emotionally resonate with a {target_audience}. Evoke feelings of {emotionality} through relatable, real-life situations that reflect their experiences. {product_mention} {format_instruction}
62
  Use the following copywriting techniques to write this opening paragraph: {techniques_text}.
63
  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.
64
  Create an opening paragraph for a {text_type} of {length} words in Spanish that makes {target_audience} aware they have a problem. Highlight this problem by explaining it with relatable situations tailored to their context, using a natural or conversational tone. The goal of this paragraph is to entice them to keep reading and discover what {product} is about. Use persuasion effectively in every word, mastering advanced techniques.
@@ -113,7 +113,7 @@ with col1:
113
  text_type = st.selectbox("Tipo de texto", ["Historia", "Carta de venta", "Correo", "Landing page"])
114
  length = st.slider("N煤mero de palabras", min_value=50, max_value=200, value=100)
115
  mood = st.selectbox("Tono de voz", ["Conversacional", "Formal", "Persuasivo"])
116
- emotionality = st.selectbox("Emocionalidad del texto", ["Tristeza", "Felicidad", "Horror", "Chistoso", "Amor", "Sorpresa", "Desesperaci贸n", "Esperanza", "Ira", "Confianza"])
117
 
118
  # Bot贸n para generar y enviar el contenido
119
  submit = st.button("Escribir mi Texto")
 
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 {emotionality} emotionally resonate with a {target_audience}. Evoke feelings of {target_audience} through relatable, real-life situations that reflect their experiences. {product_mention} {format_instruction}
62
  Use the following copywriting techniques to write this opening paragraph: {techniques_text}.
63
  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.
64
  Create an opening paragraph for a {text_type} of {length} words in Spanish that makes {target_audience} aware they have a problem. Highlight this problem by explaining it with relatable situations tailored to their context, using a natural or conversational tone. The goal of this paragraph is to entice them to keep reading and discover what {product} is about. Use persuasion effectively in every word, mastering advanced techniques.
 
113
  text_type = st.selectbox("Tipo de texto", ["Historia", "Carta de venta", "Correo", "Landing page"])
114
  length = st.slider("N煤mero de palabras", min_value=50, max_value=200, value=100)
115
  mood = st.selectbox("Tono de voz", ["Conversacional", "Formal", "Persuasivo"])
116
+ emotionality = st.selectbox("Emocionalidad del texto", ["Triste", "Feliz", "Horroroso", "Chistoso", "Amoroso", "Sorpresivo", "Desesperante", "Esperanzador", "Iracundo", "De confianza"])
117
 
118
  # Bot贸n para generar y enviar el contenido
119
  submit = st.button("Escribir mi Texto")