Krishna086 commited on
Commit
145ef9b
·
verified ·
1 Parent(s): 17283ec

Update lang_detect.py

Browse files
Files changed (1) hide show
  1. 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: