voxpreference / frontend /src /evidenceStore.js
system's picture
system HF Staff
Update VoxPreference
c4ad58f verified
Raw History Blame Contribute Delete
351 Bytes
// Audio files attached on the Evidence page, kept in memory so the Variants page can analyse them.
// (sessionStorage can only hold their names; after a page reload the files must be attached again.)
let files = [];
export function setEvidenceFiles(next) {
files = Array.from(next || []);
}
export function getEvidenceFiles() {
return files;
}