artificialguybr commited on
Commit
9462754
β€’
1 Parent(s): 7924576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -58,6 +58,7 @@ def process_video(video, high_quality, target_language):
58
  translator = Translator()
59
  try:
60
  translated_text = translator.translate(whisper_text, src=whisper_language, dest=target_language_code).text
 
61
  except AttributeError as e:
62
  print("Failed to translate text. Likely an issue with token extraction in the Google Translate API.")
63
  translated_text = "Translation failed due to API issue."
 
58
  translator = Translator()
59
  try:
60
  translated_text = translator.translate(whisper_text, src=whisper_language, dest=target_language_code).text
61
+ print(translated_text)
62
  except AttributeError as e:
63
  print("Failed to translate text. Likely an issue with token extraction in the Google Translate API.")
64
  translated_text = "Translation failed due to API issue."