Spaces:
Sleeping
Sleeping
Update index.js
Browse files
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 |
-
|
| 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 |
}
|