Spaces:
Runtime error
Runtime error
flutter-painter
commited on
Commit
•
5ebbd03
1
Parent(s):
c2776c8
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("fr")
|
108 |
self.preprocessor = TextPreprocessor()
|
109 |
|
110 |
self.languages = LANGUAGES
|