From 4f2bd597beaa778476b84c10b571db1b13524301 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 15 May 2025 21:29:24 +0700 Subject: m --- src/actions/lang.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/actions/lang.ts') diff --git a/src/actions/lang.ts b/src/actions/lang.ts index 5242c7a..fc798da 100644 --- a/src/actions/lang.ts +++ b/src/actions/lang.ts @@ -1,15 +1,16 @@ "use server"; import { AsyncRes } from "@/lib/types"; import { NLP } from "sortug-ai"; +import ServerWord from "@/zoom/ServerWord"; // import db from "../lib/db"; -// export async function textAction( -// text: string, -// lang: string, -// ): AsyncRes { -// const res = await NLP.Spacy.run(text, lang); -// return res; -// } +export async function wordAction( + text: string, + lang: string, +): Promise { + console.log(""); + return ServerWord({ word: text, lang }); +} // export async function ocrAction(file: File): AsyncRes { // const res = await NLP.ocr(file); -- cgit v1.2.3