Removed leftover pring statement
This commit is contained in:
parent
b23fa1aa60
commit
3724ff485e
1 changed files with 1 additions and 2 deletions
|
@ -47,6 +47,5 @@ def translate(text: str, lang: str) -> (str, str):
|
||||||
if not response.ok:
|
if not response.ok:
|
||||||
logging.error(f"Failed to contact Yandex API: {response.status_code}")
|
logging.error(f"Failed to contact Yandex API: {response.status_code}")
|
||||||
return ""
|
return ""
|
||||||
|
6
|
||||||
print(response.json())
|
|
||||||
return (response.json()["text"][0], response.json()["lang"])
|
return (response.json()["text"][0], response.json()["lang"])
|
Loading…
Add table
Add a link
Reference in a new issue