JeCabrera commited on
Commit
c21059d
verified
1 Parent(s): 2a678a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -20,7 +20,7 @@ def get_gemini_response(input_prompt, genre, length, mood, target_audience, cta_
20
  Use exactly {length} words.
21
 
22
  Target Audience: {target_audience}
23
- CTA Type: {cta_type}
24
 
25
  First, identify the main benefit that would resonate most with {target_audience} based on the story topic and CTA type.
26
  Then, write a story that naturally leads to this benefit.
@@ -30,7 +30,7 @@ def get_gemini_response(input_prompt, genre, length, mood, target_audience, cta_
30
  2. Develop the story with natural narrative and emotional connection
31
  3. Show consequences of inaction
32
  4. Present the solution organically
33
- 5. Close with a specific call to action based on the type:
34
  - For product purchase: Show how buying transforms their situation
35
  - For PDF guide: Highlight how the guide provides the knowledge they need
36
  - For webinar: Emphasize how the live training will help them succeed
@@ -94,13 +94,9 @@ with col1:
94
  # Campos de texto libre
95
  target_audience = st.text_input("P煤blico Objetivo:", placeholder="Ejemplo: Profesionales de 25-35 a帽os interesados en tecnolog铆a...")
96
 
97
- # CTA type only
98
- cta_type = st.selectbox("Tipo de llamado a la acci贸n:", [
99
- "Comprar producto",
100
- "Descargar gu铆a PDF",
101
- "Asistir a webinar"
102
- ])
103
-
104
  # Opciones avanzadas en acorde贸n
105
  with st.expander("Opciones avanzadas"):
106
  genre = st.selectbox("Tipo de texto:", ["Historia", "Poema", "Cita", "Ensayo"])
 
20
  Use exactly {length} words.
21
 
22
  Target Audience: {target_audience}
23
+ Call to Action: {cta_type}
24
 
25
  First, identify the main benefit that would resonate most with {target_audience} based on the story topic and CTA type.
26
  Then, write a story that naturally leads to this benefit.
 
30
  2. Develop the story with natural narrative and emotional connection
31
  3. Show consequences of inaction
32
  4. Present the solution organically
33
+ 5. Close with a natural invitation to {cta_type} that shows how it will transform their situation
34
  - For product purchase: Show how buying transforms their situation
35
  - For PDF guide: Highlight how the guide provides the knowledge they need
36
  - For webinar: Emphasize how the live training will help them succeed
 
94
  # Campos de texto libre
95
  target_audience = st.text_input("P煤blico Objetivo:", placeholder="Ejemplo: Profesionales de 25-35 a帽os interesados en tecnolog铆a...")
96
 
97
+ # CTA como campo de texto libre
98
+ cta_type = st.text_input("Llamado a la acci贸n:", placeholder="Ejemplo: Curso de marketing digital, Gu铆a para emprendedores, Webinar gratuito...")
99
+
 
 
 
 
100
  # Opciones avanzadas en acorde贸n
101
  with st.expander("Opciones avanzadas"):
102
  genre = st.selectbox("Tipo de texto:", ["Historia", "Poema", "Cita", "Ensayo"])