albertvillanova HF staff commited on
Commit
b7b5ca0
·
verified ·
1 Parent(s): ec298bc

Fix typo in description

Browse files
Files changed (1) hide show
  1. tool.py +2 -2
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