Update lang_detect.py
Browse files- lang_detect.py +1 -0
lang_detect.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
from langdetect import detect_langs
|
| 2 |
|
|
|
|
| 3 |
def detect_language(text):
|
| 4 |
try:
|
| 5 |
if not text.strip() or len(text) < 3:
|
|
|
|
| 1 |
from langdetect import detect_langs
|
| 2 |
|
| 3 |
+
# Function to detect the language of the input text
|
| 4 |
def detect_language(text):
|
| 5 |
try:
|
| 6 |
if not text.strip() or len(text) < 3:
|