diff --git a/bardapi/core.py b/bardapi/core.py index 677b27ed5..50d4e830c 100644 --- a/bardapi/core.py +++ b/bardapi/core.py @@ -11,6 +11,7 @@ # Third-party imports from langdetect import detect from typing import Optional + try: from deep_translator import GoogleTranslator from google.cloud import translate_v2 as translate diff --git a/setup.py b/setup.py index cb82a2699..a8936bd26 100644 --- a/setup.py +++ b/setup.py @@ -34,14 +34,15 @@ def get_long_description(): url="https://github.com/dsdanielpark/Bard-API", packages=find_packages(exclude=[]), python_requires=">=3.6", - install_requires=["httpx[http2]>=0.20.0", - "requests", - "deep_translator", - "colorama", - "google-cloud-translate", - "browser_cookie3", - "langdetect", - ], + install_requires=[ + "httpx[http2]>=0.20.0", + "requests", + "deep_translator", + "colorama", + "google-cloud-translate", + "browser_cookie3", + "langdetect", + ], keywords="Python, API, Bard, Google Bard, Large Language Model, Chatbot API, Google API, Chatbot", classifiers=[ "Development Status :: 5 - Production/Stable",