media-server / src /generateVideo.mts
jbilcke-hf's picture
jbilcke-hf HF staff
read for batch 3
a99b4ac
raw
history blame
291 Bytes
import { callZeroscope } from './callZeroscope.mts'
import { downloadVideo } from './downloadVideo.mts'
export const generateVideo = async (prompt: string): Promise<string> => {
const { url } = await callZeroscope(prompt)
const rawVideo = await downloadVideo(url)
return rawVideo
}