Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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 |
-
|
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
|
98 |
-
cta_type = st.
|
99 |
-
|
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"])
|