Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def responder(mensaje, historial):
|
|
| 94 |
])
|
| 95 |
|
| 96 |
# 🎓 CAPACITACIONES (AQUÍ 👇)
|
| 97 |
-
if any(p in mensaje for p in ["capacitacion", "capacitaciones", "asesoria", "asesorias","capacitación", "asesoría", "
|
| 98 |
return random.choice([
|
| 99 |
"¡Claro! 😊 Puedes agendar tu capacitación aquí 👇\n👉 [Agenda de capacitaciones](https://outlook.office365.com/book/ServiciosBibliotecarios@utb.edu.co/?ismsaljsauthenabled=true)",
|
| 100 |
"Te ayudo con eso 😄\n\nAgenda tu capacitación en el siguiente enlace 👇\n👉 [Agendar capacitación](https://outlook.office365.com/book/ServiciosBibliotecarios@utb.edu.co/?ismsaljsauthenabled=true)"
|
|
@@ -137,11 +137,16 @@ def responder(mensaje, historial):
|
|
| 137 |
])
|
| 138 |
|
| 139 |
# 🎨 Interfaz
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
)
|
| 146 |
|
| 147 |
chat.launch()
|
|
|
|
| 94 |
])
|
| 95 |
|
| 96 |
# 🎓 CAPACITACIONES (AQUÍ 👇)
|
| 97 |
+
if any(p in mensaje for p in ["capacitacion", "capacitaciones", "asesoria", "asesorias","capacitación", "asesoría", "asesorías"]):
|
| 98 |
return random.choice([
|
| 99 |
"¡Claro! 😊 Puedes agendar tu capacitación aquí 👇\n👉 [Agenda de capacitaciones](https://outlook.office365.com/book/ServiciosBibliotecarios@utb.edu.co/?ismsaljsauthenabled=true)",
|
| 100 |
"Te ayudo con eso 😄\n\nAgenda tu capacitación en el siguiente enlace 👇\n👉 [Agendar capacitación](https://outlook.office365.com/book/ServiciosBibliotecarios@utb.edu.co/?ismsaljsauthenabled=true)"
|
|
|
|
| 137 |
])
|
| 138 |
|
| 139 |
# 🎨 Interfaz
|
| 140 |
+
chat = gr.ChatInterface(
|
| 141 |
+
responder,
|
| 142 |
+
title="📚 Biblioteca PRIMONDE",
|
| 143 |
+
description="Asistente virtual de la biblioteca",
|
| 144 |
+
chatbot=gr.Chatbot(
|
| 145 |
+
value=[(
|
| 146 |
+
None,
|
| 147 |
+
"¡Hola! 😊 Soy tu asistente de la biblioteca 📚\n\nPuedes preguntarme cosas como:\n• “buscar libro 1984”\n• “horario de la biblioteca”\n• “necesito capacitación”\n\n¿En qué te ayudo?"
|
| 148 |
+
)]
|
| 149 |
+
)
|
| 150 |
)
|
| 151 |
|
| 152 |
chat.launch()
|