diff --git a/bardapi/core_async.py b/bardapi/core_async.py index 22ca900f7..f0eb9bd26 100644 --- a/bardapi/core_async.py +++ b/bardapi/core_async.py @@ -4,7 +4,9 @@ import json import uuid from re import search +from httpx import AsyncClient from deep_translator import GoogleTranslator +from google.cloud import translate_v2 as translate from bardapi.constants import ALLOWED_LANGUAGES, SESSION_HEADERS from bardapi.utils import extract_links, upload_image, extract_bard_cookie