Spaces:
Build error
Build error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -53,7 +53,7 @@ def search_error_in_excel(text, excel_path="errors.xlsx"):
|
|
| 53 |
error_code = int(match.group(1))
|
| 54 |
|
| 55 |
# Detectar tipo de consulta: "texto", "vídeo", o "foto"
|
| 56 |
-
is_text = "protocolo" in text.lower()
|
| 57 |
is_video = "video" in text.lower()
|
| 58 |
is_photo = "foto" in text.lower() or "imagen" in text.lower()
|
| 59 |
|
|
|
|
| 53 |
error_code = int(match.group(1))
|
| 54 |
|
| 55 |
# Detectar tipo de consulta: "texto", "vídeo", o "foto"
|
| 56 |
+
is_text = "protocolo" in text.lower() or "registro" in text.lower() or "log" in text.lower()
|
| 57 |
is_video = "video" in text.lower()
|
| 58 |
is_photo = "foto" in text.lower() or "imagen" in text.lower()
|
| 59 |
|