Hugging Face Deployer
Deploy bot to Hugging Face Spaces
03b405b
Raw History Blame Contribute Delete
178 Bytes
async function estimateUploadTime(bytes, mbps = 5) {
const seconds = bytes / (mbps * 1024 * 1024 / 8);
return Math.ceil(seconds);
}
module.exports = { estimateUploadTime };