freealise commited on
Commit
31d6614
·
verified ·
1 Parent(s): d1ad894

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -9,7 +9,7 @@ class MyClassificationPipeline {
9
  if (this.instance === null) {
10
 
11
  // NOTE: Uncomment this to change the cache directory
12
- // env.cacheDir = './.cache';
13
 
14
  this.instance = pipeline(this.task, this.model, { progress_callback });
15
  }
 
9
  if (this.instance === null) {
10
 
11
  // NOTE: Uncomment this to change the cache directory
12
+ env.cacheDir = './.cache';
13
 
14
  this.instance = pipeline(this.task, this.model, { progress_callback });
15
  }