ai-stories-factory / src /app /server /aitube /editClapDialogues.ts
jbilcke-hf's picture
jbilcke-hf HF staff
add toggle for video orientation
93ad82e
raw
history blame
461 Bytes
"use server"
import { ClapProject } from "@aitube/clap"
import { editClapDialogues as apiEditClapDialogues, ClapCompletionMode } from "@aitube/client"
import { getToken } from "./getToken"
export async function editClapDialogues({
clap,
}: {
clap: ClapProject
}): Promise<ClapProject> {
const newClap: ClapProject = await apiEditClapDialogues({
clap,
completionMode: ClapCompletionMode.FULL,
token: await getToken()
})
return newClap
}