From 2fce3bf85693a7941d06804d7583800f4ea9c1bf Mon Sep 17 00:00:00 2001 From: parkminwoo Date: Fri, 1 Dec 2023 03:48:02 +0900 Subject: [PATCH] fix: import langdetect in core async --- bardapi/core_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bardapi/core_async.py b/bardapi/core_async.py index 1adce88a4..10e0f3b96 100644 --- a/bardapi/core_async.py +++ b/bardapi/core_async.py @@ -4,13 +4,13 @@ import random import base64 from typing import Optional -from langdetect import detect from re import search from httpx import AsyncClient try: from deep_translator import GoogleTranslator from google.cloud import translate_v2 as translate + from langdetect import detect except ImportError: pass