artificialguybr commited on
Commit
ce39024
1 Parent(s): 232ad15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -85,6 +85,8 @@ def process_video(radio, video, target_language, has_closeup_face):
85
 
86
  shell_command = f"ffmpeg -y -i {run_uuid}_output_audio.wav -af lowpass=3000,highpass=100 {run_uuid}_output_audio_final.wav".split(" ")
87
  subprocess.run([item for item in shell_command], capture_output=False, text=True, check=True)
 
 
88
  try:
89
  segments, info = model.transcribe(f"{run_uuid}_output_audio_final.wav", beam_size=5)
90
  whisper_text = " ".join(segment.text for segment in segments)
 
85
 
86
  shell_command = f"ffmpeg -y -i {run_uuid}_output_audio.wav -af lowpass=3000,highpass=100 {run_uuid}_output_audio_final.wav".split(" ")
87
  subprocess.run([item for item in shell_command], capture_output=False, text=True, check=True)
88
+ whisper_text = None
89
+ whisper_language = None
90
  try:
91
  segments, info = model.transcribe(f"{run_uuid}_output_audio_final.wav", beam_size=5)
92
  whisper_text = " ".join(segment.text for segment in segments)