JeCabrera commited on
Commit
e5e600e
verified
1 Parent(s): 03cdd46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,6 +14,7 @@ def get_gemini_response(target_audience, product, action, mood, length):
14
  # Crear el prompt para el modelo
15
  full_prompt = f"""
16
  You are a skilled copywriter and storyteller. Create a persuasive story in Spanish following the P.A.S.A. formula (Problema, Agitaci贸n, Soluci贸n, Acci贸n).
 
17
  The story should have {length} words, with a {mood} tone. Here are the details:
18
  1. Problema: Describe a specific problem that keeps the {target_audience} awake at night.
19
  2. Agitaci贸n: Amplify the emotional and practical consequences of this problem.
@@ -71,7 +72,7 @@ with col1:
71
  # Personalizaci贸n adicional
72
  with st.expander("Personaliza tu historia"):
73
  mood = st.selectbox("Tono de la historia:", ["Emocional", "Triste", "Feliz", "Horror", "Comedia", "Rom谩ntico"])
74
- length = st.slider("Longitud de la historia (palabras):", min_value=50, max_value=500, value=200, step=10)
75
 
76
  # Bot贸n para generar contenido
77
  submit = st.button("Generar mi historia")
 
14
  # Crear el prompt para el modelo
15
  full_prompt = f"""
16
  You are a skilled copywriter and storyteller. Create a persuasive story in Spanish following the P.A.S.A. formula (Problema, Agitaci贸n, Soluci贸n, Acci贸n).
17
+ Do not explicitly label or explain each section (Problema, Agitaci贸n, Soluci贸n, Acci贸n). Instead, weave these elements naturally into a cohesive, flowing narrative that emotionally connects with the {target_audience}.
18
  The story should have {length} words, with a {mood} tone. Here are the details:
19
  1. Problema: Describe a specific problem that keeps the {target_audience} awake at night.
20
  2. Agitaci贸n: Amplify the emotional and practical consequences of this problem.
 
72
  # Personalizaci贸n adicional
73
  with st.expander("Personaliza tu historia"):
74
  mood = st.selectbox("Tono de la historia:", ["Emocional", "Triste", "Feliz", "Horror", "Comedia", "Rom谩ntico"])
75
+ length = st.slider("Longitud de la historia (palabras):", min_value=50, max_value=200, value=150, step=10)
76
 
77
  # Bot贸n para generar contenido
78
  submit = st.button("Generar mi historia")