Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,8 +65,8 @@ def get_gemini_response(product_service, target_audience, formula_type, temperat
|
|
| 65 |
st.set_page_config(page_title="UVP Generator", page_icon="💡", layout="wide")
|
| 66 |
|
| 67 |
# Título de la app
|
| 68 |
-
st.markdown("<h1>
|
| 69 |
-
st.markdown("<h3>
|
| 70 |
|
| 71 |
# Sidebar manual
|
| 72 |
with open("manual.md", "r", encoding="utf-8") as file:
|
|
@@ -79,29 +79,29 @@ col1, col2 = st.columns([1, 1])
|
|
| 79 |
# Columna izquierda para inputs
|
| 80 |
with col1:
|
| 81 |
product_service = st.text_area(
|
| 82 |
-
"
|
| 83 |
-
placeholder="
|
| 84 |
)
|
| 85 |
|
| 86 |
target_audience = st.text_area(
|
| 87 |
-
"
|
| 88 |
-
placeholder="
|
| 89 |
)
|
| 90 |
-
with st.expander("
|
| 91 |
formula_type = st.selectbox(
|
| 92 |
-
"
|
| 93 |
options=list(puv_formulas.keys())
|
| 94 |
)
|
| 95 |
temperature = st.slider(
|
| 96 |
-
"
|
| 97 |
min_value=0.0,
|
| 98 |
max_value=2.0,
|
| 99 |
value=1.0,
|
| 100 |
step=0.1,
|
| 101 |
-
help="
|
| 102 |
)
|
| 103 |
|
| 104 |
-
generate_button = st.button("
|
| 105 |
|
| 106 |
with col2:
|
| 107 |
if generate_button:
|
|
|
|
| 65 |
st.set_page_config(page_title="UVP Generator", page_icon="💡", layout="wide")
|
| 66 |
|
| 67 |
# Título de la app
|
| 68 |
+
st.markdown("<h1>Generador de PUV</h1>", unsafe_allow_html=True)
|
| 69 |
+
st.markdown("<h3>Crea Propuestas Únicas de Valor poderosas que atraigan a tus clientes ideales y comuniquen tu valor de manera efectiva.</h3>", unsafe_allow_html=True)
|
| 70 |
|
| 71 |
# Sidebar manual
|
| 72 |
with open("manual.md", "r", encoding="utf-8") as file:
|
|
|
|
| 79 |
# Columna izquierda para inputs
|
| 80 |
with col1:
|
| 81 |
product_service = st.text_area(
|
| 82 |
+
"¿Cuál es tu producto o servicio?",
|
| 83 |
+
placeholder="Ejemplo: Curso de copywriting con IA, Programa de coaching..."
|
| 84 |
)
|
| 85 |
|
| 86 |
target_audience = st.text_area(
|
| 87 |
+
"¿Cuál es tu público objetivo?",
|
| 88 |
+
placeholder="Ejemplo: Coaches que quieren atraer más clientes..."
|
| 89 |
)
|
| 90 |
+
with st.expander("Opciones avanzadas"):
|
| 91 |
formula_type = st.selectbox(
|
| 92 |
+
"Fórmula PUV:",
|
| 93 |
options=list(puv_formulas.keys())
|
| 94 |
)
|
| 95 |
temperature = st.slider(
|
| 96 |
+
"Nivel de creatividad:",
|
| 97 |
min_value=0.0,
|
| 98 |
max_value=2.0,
|
| 99 |
value=1.0,
|
| 100 |
step=0.1,
|
| 101 |
+
help="Valores más altos generan propuestas más creativas pero menos predecibles."
|
| 102 |
)
|
| 103 |
|
| 104 |
+
generate_button = st.button("Generar PUV")
|
| 105 |
|
| 106 |
with col2:
|
| 107 |
if generate_button:
|