osanseviero
commited on
Commit
•
1931f62
1
Parent(s):
56f15e5
Update pipeline.py
Browse files- pipeline.py +2 -5
pipeline.py
CHANGED
@@ -12,11 +12,8 @@ class PreTrainedPipeline():
|
|
12 |
"""
|
13 |
Initialize model
|
14 |
"""
|
15 |
-
|
16 |
-
|
17 |
-
except (IOError, OSError):
|
18 |
-
nltk.download('wordnet')
|
19 |
-
self.model = BigGAN.from_pretrained(path)
|
20 |
self.truncation = 0.1
|
21 |
|
22 |
def __call__(self, inputs: str):
|
|
|
12 |
"""
|
13 |
Initialize model
|
14 |
"""
|
15 |
+
nltk.download('wordnet')
|
16 |
+
self.model = BigGAN.from_pretrained(path)
|
|
|
|
|
|
|
17 |
self.truncation = 0.1
|
18 |
|
19 |
def __call__(self, inputs: str):
|