JeCabrera commited on
Commit
6ba36c4
verified
1 Parent(s): a6af431

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -59,7 +59,7 @@ def get_gemini_response(target_audience, product, text_type, length, mood, model
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. Write a {length} {text_type} in Spanish. 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.lower()} 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
 
@@ -119,8 +119,6 @@ with col1:
119
 
120
  # Agrupar todas las opciones en una acorde贸n
121
  with st.expander("Personaliza tu texto"):
122
- # Variable para c贸mo se debe mencionar el producto
123
- product_mention = st.selectbox("Menci贸n del producto:", ["Directa", "Indirecta", "Metaf贸rica"])
124
 
125
  # Opciones actualizadas para el tipo de texto
126
  text_type = st.selectbox("Tipo de texto:", ["Historia", "Carta de venta", "Correo", "Landing page"])
 
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. Write a {length} {text_type} in Spanish. 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} 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
 
 
119
 
120
  # Agrupar todas las opciones en una acorde贸n
121
  with st.expander("Personaliza tu texto"):
 
 
122
 
123
  # Opciones actualizadas para el tipo de texto
124
  text_type = st.selectbox("Tipo de texto:", ["Historia", "Carta de venta", "Correo", "Landing page"])