-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Description
Debug Tips
- I'm sure I've read this project's Issues of README.
What happened?
I wrote this code:
ts.translate_text('hello, how are you?', translator='yeekit', from_language='en', to_language='ar')
APP Version
5.7.1
Python Version
3.10
Runtime Environment
colab google
Country/Region
Russia
Relevant log output
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-25-651789a4e166> in <cell line: 1>()
----> 1 ts.translate_text('hello, how are you?', translator='yeekit', from_language='en', to_language='ar')
4 frames
/usr/lib/python3.10/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
337 else:
338 if not isinstance(s, (bytes, bytearray)):
--> 339 raise TypeError(f'the JSON object must be str, bytes or bytearray, '
340 f'not {s.__class__.__name__}')
341 s = s.decode(detect_encoding(s), 'surrogatepass')
TypeError: the JSON object must be str, bytes or bytearray, not bool
Screenshots
No response
Code of Conduct
- I agree to follow this project's Code of Conduct