VideoChain-API / src /scheduler /readVideoMetadataFile.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add "movie director assistant" LLM step
e4e0e54
raw
history blame
288 Bytes
import { promises as fs } from "node:fs"
import { Video } from "../types.mts"
export const readVideoMetadataFile = async (videoMetadataFilePath: string): Promise<Video> => {
const video = JSON.parse(
await fs.readFile(videoMetadataFilePath, 'utf8')
) as Video
return video
}