idk what to type, so hi
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m5s
Publish Docker Image / docker (ubuntu-latest) (push) Successful in 54s

This commit is contained in:
Lee 2024-04-23 17:48:42 +01:00
parent 43558604c0
commit 9bd7a543d8

@ -21,5 +21,5 @@ const modelOperations = new ModelOperations({
*/
export async function detectLanguage(content: string) {
const languages = await modelOperations.runModel(content);
return languages.length > 0 ? languages[0].languageId : "Text";
return languages.length > 0 ? languages[0].languageId : "text";
}