Update lid.py
Browse files
lid.py
CHANGED
@@ -16,7 +16,7 @@ with open(f"data/lid/all_langs.tsv") as f:
|
|
16 |
iso, name = line.split(" ", 1)
|
17 |
LID_LANGUAGES[iso] = name.strip()
|
18 |
|
19 |
-
def identify_language(audio
|
20 |
if audio is None:
|
21 |
return "ERROR: You have to either use the microphone or upload an audio file"
|
22 |
|
|
|
16 |
iso, name = line.split(" ", 1)
|
17 |
LID_LANGUAGES[iso] = name.strip()
|
18 |
|
19 |
+
def identify_language(audio):
|
20 |
if audio is None:
|
21 |
return "ERROR: You have to either use the microphone or upload an audio file"
|
22 |
|