Vlytz commited on
Commit
67e1221
·
verified ·
1 Parent(s): 31870e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Tutor Virtual") as demo:
91
 
92
  gr.Markdown("*(Nota: El puntaje de riesgo cambiará si las notas son < 4.0)*")
93
 
94
- # --- Columna 2: El "Chat" (Área Principal) ---
95
  with gr.Column(scale=4):
96
  gr.ChatInterface(
97
  fn=chatbot_response,
@@ -100,14 +100,14 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Tutor Virtual") as demo:
100
  height=500,
101
  label="Chat con Tutor",
102
  avatar_images=("user.png", "bot.png"),
103
- type='messages' # <--- 1. AÑADE ESTA LÍNEA (para el warning)
104
  ),
105
 
106
  textbox=gr.Textbox(placeholder="Hola, ¿en qué puedo ayudarte hoy?"),
107
  submit_btn="Enviar Consulta",
108
- # retry_btn=None, <--- 2. BORRA ESTA LÍNEA (para el error)
109
- # undo_btn=None, <--- 3. BORRA ESTA LÍNEA (para el error)
110
- clear_btn="Limpiar Chat",
111
  additional_inputs=[input_edad, input_sexo, input_asistencia, input_notas]
112
  )
113
 
 
91
 
92
  gr.Markdown("*(Nota: El puntaje de riesgo cambiará si las notas son < 4.0)*")
93
 
94
+ # --- Columna 2: El "Chat" (Área Principal) ---
95
  with gr.Column(scale=4):
96
  gr.ChatInterface(
97
  fn=chatbot_response,
 
100
  height=500,
101
  label="Chat con Tutor",
102
  avatar_images=("user.png", "bot.png"),
103
+ type='messages'
104
  ),
105
 
106
  textbox=gr.Textbox(placeholder="Hola, ¿en qué puedo ayudarte hoy?"),
107
  submit_btn="Enviar Consulta",
108
+
109
+ # clear_btn="Limpiar Chat", # <--- 4. BORRA ESTA LÍNEA TAMBIÉN
110
+
111
  additional_inputs=[input_edad, input_sexo, input_asistencia, input_notas]
112
  )
113