Spaces:
Running
Running
Fix typo in description
Browse files
tool.py
CHANGED
|
@@ -241,8 +241,8 @@ class TranslationTool(PipelineTool):
|
|
| 241 |
lang_to_code = LANGUAGE_CODES
|
| 242 |
default_checkpoint = "facebook/nllb-200-distilled-600M"
|
| 243 |
description = (
|
| 244 |
-
"This is a tool that translates text from a language to another
|
| 245 |
-
f"Both `src_lang`and `tgt_lang` should belong to this list of languages: {list(lang_to_code.keys())}."
|
| 246 |
)
|
| 247 |
name = "translator"
|
| 248 |
pre_processor_class = AutoTokenizer
|
|
|
|
| 241 |
lang_to_code = LANGUAGE_CODES
|
| 242 |
default_checkpoint = "facebook/nllb-200-distilled-600M"
|
| 243 |
description = (
|
| 244 |
+
"This is a tool that translates text from a language to another.\n\n"
|
| 245 |
+
f"Both `src_lang` and `tgt_lang` should belong to this list of languages: {list(lang_to_code.keys())}."
|
| 246 |
)
|
| 247 |
name = "translator"
|
| 248 |
pre_processor_class = AutoTokenizer
|