Dmitry Chaplinsky
commited on
Commit
•
cbdc24e
1
Parent(s):
c2e7c9e
Another one
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -8,7 +8,7 @@ class PreTrainedPipeline:
|
|
8 |
# Preload all the elements you are going to need at inference.
|
9 |
# For instance your model, processors, tokenizer that might be needed.
|
10 |
# This function is only called once, so do all the heavy processing I/O here"""
|
11 |
-
self.model = PunctuationCapitalizationModel.
|
12 |
|
13 |
def __call__(self, inputs: str) -> List[Dict[str, Any]]:
|
14 |
"""
|
|
|
8 |
# Preload all the elements you are going to need at inference.
|
9 |
# For instance your model, processors, tokenizer that might be needed.
|
10 |
# This function is only called once, so do all the heavy processing I/O here"""
|
11 |
+
self.model = PunctuationCapitalizationModel.from_pretrained("dchaplinsky/punctuation_uk_bert")
|
12 |
|
13 |
def __call__(self, inputs: str) -> List[Dict[str, Any]]:
|
14 |
"""
|