Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -128,8 +128,7 @@ with col1:
|
|
128 |
st.session_state.creatividad = creatividad
|
129 |
|
130 |
# Selector de nivel de conciencia
|
131 |
-
|
132 |
-
consciousness_options = ["Ninguno"]
|
133 |
for i, key in enumerate(CONSCIOUSNESS_LEVELS.keys(), 1):
|
134 |
# Replace underscores with spaces in the key
|
135 |
display_name = key.replace("_", " ")
|
@@ -142,15 +141,16 @@ with col1:
|
|
142 |
help="Selecciona el nivel de conciencia en el que se encuentra tu cliente ideal"
|
143 |
)
|
144 |
|
145 |
-
#
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
154 |
st.session_state.nivel_conciencia = nivel_conciencia
|
155 |
|
156 |
if nivel_conciencia != "Ninguno":
|
|
|
128 |
st.session_state.creatividad = creatividad
|
129 |
|
130 |
# Selector de nivel de conciencia
|
131 |
+
consciousness_options = []
|
|
|
132 |
for i, key in enumerate(CONSCIOUSNESS_LEVELS.keys(), 1):
|
133 |
# Replace underscores with spaces in the key
|
134 |
display_name = key.replace("_", " ")
|
|
|
141 |
help="Selecciona el nivel de conciencia en el que se encuentra tu cliente ideal"
|
142 |
)
|
143 |
|
144 |
+
# Extract the original key from the display name
|
145 |
+
level_number = nivel_conciencia_display.split(" - ")[0].replace("Nivel ", "")
|
146 |
+
original_key = list(CONSCIOUSNESS_LEVELS.keys())[int(level_number) - 1]
|
147 |
+
nivel_conciencia = original_key.replace("_", " ")
|
148 |
+
|
149 |
+
# Get the description from the CONSCIOUSNESS_LEVELS dictionary
|
150 |
+
if original_key in CONSCIOUSNESS_LEVELS:
|
151 |
+
nivel_info = CONSCIOUSNESS_LEVELS[original_key]["estado_mental"]
|
152 |
+
st.info(f"**{nivel_conciencia}**: {nivel_info}")
|
153 |
+
|
154 |
st.session_state.nivel_conciencia = nivel_conciencia
|
155 |
|
156 |
if nivel_conciencia != "Ninguno":
|