summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/utils.py b/searx/utils.py
index c009c314..c835ba83 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -653,6 +653,7 @@ def detect_language(text: str, threshold: float = 0.3, only_search_languages: bo
.. _`FastText.zip: Compressing text classification models`: https://arxiv.org/abs/1612.03651
"""
+ return None
if not isinstance(text, str):
raise ValueError('text must a str')
r = _get_fasttext_model().predict(text.replace('\n', ' '), k=1, threshold=threshold)