jbilcke-hf's picture
jbilcke-hf HF staff
ok! now, time to debug and build the frontend..
5dfc565
raw
history blame
296 Bytes
import { promises as fs } from "node:fs"
import path from "node:path"
import { VideoTask } from "../types.mts"
export const readTask = async (taskFilePath: string): Promise<VideoTask> => {
const task = JSON.parse(
await fs.readFile(taskFilePath, 'utf8')
) as VideoTask
return task
}