Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,13 +130,13 @@ with col1:
|
|
130 |
# Selector de formato
|
131 |
from format.format import buyer_persona_formats
|
132 |
|
133 |
-
# Obtener
|
134 |
-
format_keys =
|
135 |
|
136 |
formato = st.selectbox(
|
137 |
"Formato del perfil",
|
138 |
options=format_keys,
|
139 |
-
format_func=lambda x: x.replace("_format", "").capitalize()
|
140 |
index=format_keys.index(st.session_state.formato) if st.session_state.formato in format_keys else 0,
|
141 |
help="Selecciona el formato en el que se presentará el perfil del cliente ideal"
|
142 |
)
|
|
|
130 |
# Selector de formato
|
131 |
from format.format import buyer_persona_formats
|
132 |
|
133 |
+
# Obtener solo las claves que terminan en "_format" del diccionario
|
134 |
+
format_keys = [key for key in buyer_persona_formats.keys() if key.endswith("_format")]
|
135 |
|
136 |
formato = st.selectbox(
|
137 |
"Formato del perfil",
|
138 |
options=format_keys,
|
139 |
+
format_func=lambda x: x.replace("_format", "").capitalize(),
|
140 |
index=format_keys.index(st.session_state.formato) if st.session_state.formato in format_keys else 0,
|
141 |
help="Selecciona el formato en el que se presentará el perfil del cliente ideal"
|
142 |
)
|