blob: 5242c7a24a409a155374b04c7fd31506efe78b6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"use server";
import { AsyncRes } from "@/lib/types";
import { NLP } from "sortug-ai";
// import db from "../lib/db";
// export async function textAction(
// text: string,
// lang: string,
// ): AsyncRes<NLP.Spacy.SpacyRes> {
// const res = await NLP.Spacy.run(text, lang);
// return res;
// }
// export async function ocrAction(file: File): AsyncRes<string[]> {
// const res = await NLP.ocr(file);
// return res;
// }
|