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

Commit

Permalink
fix: unnecessary translator object (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Dec 27, 2023
1 parent ddf4c22 commit f85b0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bardapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def ask_about_image(
google_official_translator = translate.Client(
api_key=self.google_translator_api_key
)
else:
elif self.language is not None or lang is not None:
translator_to_eng = GoogleTranslator(source="auto", target="en")

# [Optional] Set language
Expand Down

0 comments on commit f85b0e6

Please sign in to comment.