react-code-dataset / tsdx /src /createProgressEstimator.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
406 Bytes
import fs from 'fs-extra';
import { paths } from './constants';
const progressEstimator = require('progress-estimator');
export async function createProgressEstimator() {
await fs.ensureDir(paths.progressEstimatorCache);
return progressEstimator({
// All configuration keys are optional, but it's recommended to specify a storage location.
storagePath: paths.progressEstimatorCache,
});
}