Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,11 @@ chatbot = pipeline("text-generation", model="gpt2")
|
|
11 |
def get_response(user_input):
|
12 |
# Respuestas personalizadas
|
13 |
if "hola" in user_input.lower():
|
14 |
-
return "¡Hola! ¿Cómo puedo ayudarte hoy?"
|
15 |
elif "hora" in user_input.lower():
|
16 |
return f"Son las {datetime.now().strftime('%H:%M')}. ¿Hay algo más en lo que pueda ayudarte?"
|
17 |
elif "adiós" in user_input.lower():
|
18 |
-
return "¡Hasta luego! Que tengas un buen día."
|
19 |
else:
|
20 |
# Respuesta por defecto usando el modelo
|
21 |
response = chatbot(user_input, max_length=50)
|
|
|
11 |
def get_response(user_input):
|
12 |
# Respuestas personalizadas
|
13 |
if "hola" in user_input.lower():
|
14 |
+
return "¡Hola, soy Jarbot! ¿Cómo puedo ayudarte hoy?"
|
15 |
elif "hora" in user_input.lower():
|
16 |
return f"Son las {datetime.now().strftime('%H:%M')}. ¿Hay algo más en lo que pueda ayudarte?"
|
17 |
elif "adiós" in user_input.lower():
|
18 |
+
return "¡Hasta luego! Que tengas un buen día, espero que nos volvamos a ver."
|
19 |
else:
|
20 |
# Respuesta por defecto usando el modelo
|
21 |
response = chatbot(user_input, max_length=50)
|