Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 2fce3bf

Browse files
committed
fix: import langdetect in core async
1 parent d509675 commit 2fce3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bardapi/core_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import random
55
import base64
66
from typing import Optional
7-
from langdetect import detect
87
from re import search
98
from httpx import AsyncClient
109

1110
try:
1211
from deep_translator import GoogleTranslator
1312
from google.cloud import translate_v2 as translate
13+
from langdetect import detect
1414
except ImportError:
1515
pass
1616

0 commit comments

Comments
 (0)