Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,13 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, creativit
|
|
65 |
* Asking a Question: 'Did you know that...'
|
66 |
* When: 'When is it a good idea to tell a girl you like her? If you don't say it at that moment, say goodbye to getting to know her intimately.'
|
67 |
Using {mention_instruction} when you want to mention {product}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
"""
|
69 |
|
70 |
response = model.generate_content([full_prompt])
|
@@ -77,13 +84,6 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, creativit
|
|
77 |
# Inicializar la aplicaci贸n Streamlit
|
78 |
st.set_page_config(page_title="Generador de Bullets", layout="wide")
|
79 |
|
80 |
-
# Inicializar el estado de la expansi贸n del acorde贸n
|
81 |
-
if "accordion_expanded" not in st.session_state:
|
82 |
-
st.session_state["accordion_expanded"] = False
|
83 |
-
|
84 |
-
def toggle_accordion():
|
85 |
-
st.session_state["accordion_expanded"] = not st.session_state["accordion_expanded"]
|
86 |
-
|
87 |
# Centrar el t铆tulo y el subt铆tulo
|
88 |
st.markdown("<h1 style='text-align: center;'>Generador de Bullets</h1>", unsafe_allow_html=True)
|
89 |
st.markdown("<h4 style='text-align: center;'>Crea bullets efectivos que conecten emocionalmente con tu audiencia.</h4>", unsafe_allow_html=True)
|
|
|
65 |
* Asking a Question: 'Did you know that...'
|
66 |
* When: 'When is it a good idea to tell a girl you like her? If you don't say it at that moment, say goodbye to getting to know her intimately.'
|
67 |
Using {mention_instruction} when you want to mention {product}.
|
68 |
+
Use the following mention instructions to guide your writing: {mention_instruction}
|
69 |
+
Using the mention type '{product_mention}' to guide how to mention the product in the benefits or bullets. Ensure the mention is adapted based on this type:
|
70 |
+
- Direct: Clearly highlight the product as the solution.
|
71 |
+
- Indirect: Subtly suggest the product without naming it.
|
72 |
+
- Metaphorical: Use a metaphor to connect the product to the solution.
|
73 |
+
When responding, always include a headline that references the {target_audience} and the product in the following way: 'Aqu铆 tienes 5 bullets para Pap谩s solteros, que aumenten el deseo de adquirir el Aceite multigrado, usando la menci贸n indirecta:'
|
74 |
+
Please create the bullets now.
|
75 |
"""
|
76 |
|
77 |
response = model.generate_content([full_prompt])
|
|
|
84 |
# Inicializar la aplicaci贸n Streamlit
|
85 |
st.set_page_config(page_title="Generador de Bullets", layout="wide")
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
# Centrar el t铆tulo y el subt铆tulo
|
88 |
st.markdown("<h1 style='text-align: center;'>Generador de Bullets</h1>", unsafe_allow_html=True)
|
89 |
st.markdown("<h4 style='text-align: center;'>Crea bullets efectivos que conecten emocionalmente con tu audiencia.</h4>", unsafe_allow_html=True)
|