idk what to type, so hi
This commit is contained in:
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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user