Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -30,7 +30,7 @@ class PreTrainedPipeline():
|
|
30 |
self.chars = "!',.;ACDFGHIMORSTWabcdefghijklmnopqrstuvwxy"
|
31 |
self.char_to_index = {char: index for index, char in enumerate(self.chars)}
|
32 |
self.index_to_char = {index: char for char, index in self.char_to_index.items()}
|
33 |
-
self.output_size = len(chars)
|
34 |
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
35 |
|
36 |
def __call__(self, inputs: str):
|
|
|
30 |
self.chars = "!',.;ACDFGHIMORSTWabcdefghijklmnopqrstuvwxy"
|
31 |
self.char_to_index = {char: index for index, char in enumerate(self.chars)}
|
32 |
self.index_to_char = {index: char for char, index in self.char_to_index.items()}
|
33 |
+
self.output_size = len(self.chars)
|
34 |
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
35 |
|
36 |
def __call__(self, inputs: str):
|