Fix language code typo

This commit is contained in:
Ahmet Oner
2023-02-11 14:38:57 +01:00
parent 08e1326aec
commit 2f49d730e3
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ Detects the language spoken in the uploaded file. For longer files it only proce
Returns a json with following fields:
- **detected_language**
- **langauge_code**
- **language_code**
## Build

View File

@@ -106,7 +106,7 @@ def language_detection(
detected_lang_code = max(probs, key=probs.get)
result = { "detected_language": tokenizer.LANGUAGES[detected_lang_code],
"langauge_code" : detected_lang_code }
"language_code" : detected_lang_code }
return result