Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def respuesta_basica(texto):
|
|
| 49 |
def chat_biblioteca(pregunta, historial):
|
| 50 |
respuesta_simple = respuesta_basica(pregunta)
|
| 51 |
if respuesta_simple:
|
| 52 |
-
return respuesta_simple
|
| 53 |
|
| 54 |
# Si no es frase común, responder usando embeddings y modelo QA
|
| 55 |
embedding = modelo_emb.encode([pregunta], convert_to_numpy=True)
|
|
|
|
| 49 |
def chat_biblioteca(pregunta, historial):
|
| 50 |
respuesta_simple = respuesta_basica(pregunta)
|
| 51 |
if respuesta_simple:
|
| 52 |
+
return historial + [[pregunta, respuesta_simple]]
|
| 53 |
|
| 54 |
# Si no es frase común, responder usando embeddings y modelo QA
|
| 55 |
embedding = modelo_emb.encode([pregunta], convert_to_numpy=True)
|