Skip to content

Commit

Permalink
Merge pull request #131 from BibleNLP/add-translation-in
Browse files Browse the repository at this point in the history
Add AWS region
  • Loading branch information
woodwardmw authored Feb 23, 2024
2 parents 9ce1ebf + 862f528 commit f97efe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/translation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def translate_text(text: str):
:param text: The text to translate
:return: The response, including the translated text
"""
translate = boto3.client(service_name="translate", use_ssl=True)
translate = boto3.client(service_name="translate", use_ssl=True, region_name='us-east-1')

# Call AWS Translate
response = translate.translate_text(
Expand Down

0 comments on commit f97efe4

Please sign in to comment.