Lukeetah commited on
Commit
4b5ac9a
verified
1 Parent(s): 52f940d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -578,7 +578,10 @@ nudge_generator = NudgeGenerator(user_manager, context_engine)
578
  gamification_engine = GamificationEngine() # No necesita instanciar, es de clase
579
 
580
  # --- M贸dulo 8: Interfaz Gradio (UI/UX Argento de Nivel Superior con Voz) ---
581
- with gr.Blocks(theme=gr.themes.Soft(), css="footer { display: none !important; }") as demo:
 
 
 
582
  # gr.State para mantener el objeto User en la sesi贸n
583
  current_user_state = gr.State(None)
584
 
 
578
  gamification_engine = GamificationEngine() # No necesita instanciar, es de clase
579
 
580
  # --- M贸dulo 8: Interfaz Gradio (UI/UX Argento de Nivel Superior con Voz) ---
581
+ # Se crea el objeto demo fuera del bloque 'with' para asegurar que sea accesible globalmente
582
+ demo = gr.Blocks(theme=gr.themes.Soft(), css="footer { display: none !important; }")
583
+
584
+ with demo: # Ahora el bloque 'with' utiliza el objeto demo ya creado
585
  # gr.State para mantener el objeto User en la sesi贸n
586
  current_user_state = gr.State(None)
587