artificialguybr commited on
Commit
578e8ab
1 Parent(s): 4eae89a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -59,9 +59,8 @@ def process_video(video, high_quality, target_language):
59
  except AttributeError as e:
60
  print("Failed to translate text. Here's the error:")
61
  print(e)
62
- print("Response text for debugging:")
63
- print(r.text) # Assuming `r` is the response object
64
  translated_text = "Translation failed"
 
65
 
66
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
67
  tts.to('cuda') # Replacing deprecated gpu=True
 
59
  except AttributeError as e:
60
  print("Failed to translate text. Here's the error:")
61
  print(e)
 
 
62
  translated_text = "Translation failed"
63
+
64
 
65
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
66
  tts.to('cuda') # Replacing deprecated gpu=True