janvarev / OneRingTranslator

Simple local REST web service to translate texts. Plugins. Automatic calculate BLEU/COMET metrics of translation quality.
MIT License
116 stars 12 forks source link

Fix DeepL translation plugin #5

Closed Cohee1207 closed 1 year ago

Cohee1207 commented 1 year ago

Fixes this:

  File "/Users/cohee/clones/OneRingTranslator/plugins/plugin_deepl.py", line 42, in translate
    res = DeeplTranslator(api_key, use_free_api=is_free, source=from_lang, target=to_lang).translate(text)
TypeError: DeeplTranslator.__init__() got multiple values for argument 'source'
janvarev commented 1 year ago

Thanks! Fixed it with a litttle bit another line.