radinhas commited on
Commit
809e2af
1 Parent(s): a31a8c2

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +1 -1
apis/chat_api.py CHANGED
@@ -57,7 +57,7 @@ class ChatAPIApp:
57
  to_lang = item.to_language
58
 
59
 
60
- translated = translator.translate(item.input_text, to_lang, from_lang).text
61
  item_response = {
62
  "from_language": item.from_language,
63
  "to_language": item.to_language,
 
57
  to_lang = item.to_language
58
 
59
 
60
+ translated = translator.translate(item.input_text, dest=to_lang).text
61
  item_response = {
62
  "from_language": item.from_language,
63
  "to_language": item.to_language,