blob: fc798da37d4bad3d044e7980ecd2680ce79be5f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"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 wordAction(
text: string,
lang: string,
): Promise<React.ReactNode> {
console.log("");
return ServerWord({ word: text, lang });
}
// export async function ocrAction(file: File): AsyncRes<string[]> {
// const res = await NLP.ocr(file);
// return res;
// }
|