Dani commited on
Commit
51ce539
1 Parent(s): 25a4665
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ import os
13
  pipe = pipeline(model="dacavi/whisper-small-es")
14
 
15
  def translate_text(text, target_language_code):
16
- translate = boto3.client('translate')
17
 
18
  response = translate.translate_text(
19
  Text=text,
 
13
  pipe = pipeline(model="dacavi/whisper-small-es")
14
 
15
  def translate_text(text, target_language_code):
16
+ translate = boto3.client('translate', region_name='us-east-1')
17
 
18
  response = translate.translate_text(
19
  Text=text,