Spaces:
Runtime error
Runtime error
flutter-painter
commited on
Commit
•
c2776c8
1
Parent(s):
698af4e
Update translation.py
Browse files- translation.py +1 -1
translation.py
CHANGED
@@ -104,7 +104,7 @@ class Translator:
|
|
104 |
self.tokenizer = NllbTokenizer.from_pretrained(MODEL_URL)
|
105 |
fix_tokenizer(self.tokenizer)
|
106 |
|
107 |
-
self.splitter = SentenceSplitter("
|
108 |
self.preprocessor = TextPreprocessor()
|
109 |
|
110 |
self.languages = LANGUAGES
|
|
|
104 |
self.tokenizer = NllbTokenizer.from_pretrained(MODEL_URL)
|
105 |
fix_tokenizer(self.tokenizer)
|
106 |
|
107 |
+
self.splitter = SentenceSplitter("ru")
|
108 |
self.preprocessor = TextPreprocessor()
|
109 |
|
110 |
self.languages = LANGUAGES
|