VideoChain-API / src /tests /submitVideo.mts
jbilcke-hf's picture
jbilcke-hf HF staff
VS -> VC
12506f0
raw
history blame
504 Bytes
import { server, videoId } from "./config.mts"
console.log('submitting a new video..')
const response = await fetch(`${server}/`, {
method: "POST",
headers: {
"Accept": "application/json",
"Content-Type": "application/json"
},
body: JSON.stringify({
token: process.env.VC_SECRET_ACCESS_TOKEN,
sequence: {
id: videoId,
},
shots: []
})
});
console.log('response:', response)
const task = await response.json()
console.log("task:", JSON.stringify(task, null, 2))