Spaces:
Sleeping
Sleeping
Upload 8 files
Browse files
app.py
CHANGED
|
@@ -68,18 +68,18 @@ with col1:
|
|
| 68 |
product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
|
| 69 |
number_of_benefits = st.selectbox("Número de Beneficios", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
|
| 70 |
|
| 71 |
-
#
|
| 72 |
with st.expander("Opciones avanzadas"):
|
| 73 |
st.subheader("Tipo de CTA:")
|
| 74 |
selected_formula_key = st.selectbox(
|
| 75 |
-
"",
|
| 76 |
options=list(bullet_formulas.keys())
|
| 77 |
)
|
| 78 |
selected_formula = bullet_formulas[selected_formula_key]
|
| 79 |
|
| 80 |
st.subheader("Tono del CTA:")
|
| 81 |
selected_angle_key = st.selectbox(
|
| 82 |
-
"",
|
| 83 |
options=list(bullet_angles.keys())
|
| 84 |
)
|
| 85 |
selected_angle = bullet_angles[selected_angle_key]
|
|
@@ -87,8 +87,7 @@ with col1:
|
|
| 87 |
st.subheader("Nivel de creatividad:")
|
| 88 |
temperature = st.slider("", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
| 89 |
|
| 90 |
-
|
| 91 |
-
submit = st.button("Generar Beneficios")
|
| 92 |
|
| 93 |
# Mostrar los beneficios generados
|
| 94 |
# Update the submit section to include selected_angle
|
|
|
|
| 68 |
product = st.text_input("¿Qué producto tienes en mente?", placeholder="Ejemplo: Curso de Inglés")
|
| 69 |
number_of_benefits = st.selectbox("Número de Beneficios", options=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], index=4)
|
| 70 |
|
| 71 |
+
# Fix indentation - remove extra spaces
|
| 72 |
with st.expander("Opciones avanzadas"):
|
| 73 |
st.subheader("Tipo de CTA:")
|
| 74 |
selected_formula_key = st.selectbox(
|
| 75 |
+
"",
|
| 76 |
options=list(bullet_formulas.keys())
|
| 77 |
)
|
| 78 |
selected_formula = bullet_formulas[selected_formula_key]
|
| 79 |
|
| 80 |
st.subheader("Tono del CTA:")
|
| 81 |
selected_angle_key = st.selectbox(
|
| 82 |
+
"",
|
| 83 |
options=list(bullet_angles.keys())
|
| 84 |
)
|
| 85 |
selected_angle = bullet_angles[selected_angle_key]
|
|
|
|
| 87 |
st.subheader("Nivel de creatividad:")
|
| 88 |
temperature = st.slider("", min_value=0.0, max_value=2.0, value=1.0, step=0.1)
|
| 89 |
|
| 90 |
+
submit = st.button("GENERAR LOS BULLETS POINTS")
|
|
|
|
| 91 |
|
| 92 |
# Mostrar los beneficios generados
|
| 93 |
# Update the submit section to include selected_angle
|
style.py
CHANGED
|
@@ -1,22 +1,42 @@
|
|
| 1 |
-
styles = {
|
| 2 |
-
"main_layout": """
|
| 3 |
-
<style>
|
| 4 |
-
.block-container { padding-top: 1rem; padding-bottom: 5rem; }
|
| 5 |
-
h1 { margin-top: 0rem; padding-top: 1rem; }
|
| 6 |
-
h4 { margin-top: 0.5rem; padding-top: 0rem; }
|
| 7 |
-
</style>
|
| 8 |
-
""",
|
| 9 |
-
"button": """
|
| 10 |
-
<style>
|
| 11 |
-
.stButton > button {
|
| 12 |
-
width: 100%;
|
| 13 |
-
margin-top: 1rem;
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
|
|
|
| 1 |
+
styles = {
|
| 2 |
+
"main_layout": """
|
| 3 |
+
<style>
|
| 4 |
+
.block-container { padding-top: 1rem; padding-bottom: 5rem; }
|
| 5 |
+
h1 { margin-top: 0rem; padding-top: 1rem; }
|
| 6 |
+
h4 { margin-top: 0.5rem; padding-top: 0rem; }
|
| 7 |
+
</style>
|
| 8 |
+
""",
|
| 9 |
+
"button": """
|
| 10 |
+
<style>
|
| 11 |
+
.stButton > button {
|
| 12 |
+
width: 100%;
|
| 13 |
+
margin-top: 1rem;
|
| 14 |
+
background-color: #FFD700;
|
| 15 |
+
color: black;
|
| 16 |
+
font-weight: bold;
|
| 17 |
+
border: none;
|
| 18 |
+
}
|
| 19 |
+
.stButton > button:hover {
|
| 20 |
+
background-color: #FFC800;
|
| 21 |
+
color: black;
|
| 22 |
+
border: none;
|
| 23 |
+
}
|
| 24 |
+
</style>
|
| 25 |
+
""",
|
| 26 |
+
"results_container": """
|
| 27 |
+
padding: 15px;
|
| 28 |
+
border: 1px solid #ddd;
|
| 29 |
+
border-radius: 8px;
|
| 30 |
+
""",
|
| 31 |
+
"expander": """
|
| 32 |
+
<style>
|
| 33 |
+
.streamlit-expanderHeader {
|
| 34 |
+
font-size: 1.2em;
|
| 35 |
+
font-weight: 600;
|
| 36 |
+
}
|
| 37 |
+
.streamlit-expanderContent {
|
| 38 |
+
padding: 1rem;
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
"""
|
| 42 |
}
|