JeCabrera commited on
Commit
350275a
·
verified ·
1 Parent(s): 86f1d0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -128,8 +128,7 @@ with col1:
128
  st.session_state.creatividad = creatividad
129
 
130
  # Selector de nivel de conciencia
131
- # Create a list with "Ninguno" and the numbered consciousness levels
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
- # Map back to the original consciousness level name for processing
146
- if nivel_conciencia_display == "Ninguno":
147
- nivel_conciencia = "Ninguno"
148
- else:
149
- # Extract the original key from the display name
150
- level_number = nivel_conciencia_display.split(" - ")[0].replace("Nivel ", "")
151
- original_key = list(CONSCIOUSNESS_LEVELS.keys())[int(level_number) - 1]
152
- nivel_conciencia = original_key.replace("_", " ")
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":