Spaces:
Running
Running
Update apis/chat_api.py
Browse files- 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
|
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,
|