Update app.py
Browse files
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 |
-
|
| 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'
|
| 104 |
),
|
| 105 |
|
| 106 |
textbox=gr.Textbox(placeholder="Hola, ¿en qué puedo ayudarte hoy?"),
|
| 107 |
submit_btn="Enviar Consulta",
|
| 108 |
-
|
| 109 |
-
#
|
| 110 |
-
|
| 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 |
|