Add-Vishnu commited on
Commit
bb1f140
·
1 Parent(s): 3c9a9d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def transcribe(audio,):
24
  temp_audio_path = temp_audio.name
25
  sf.write(temp_audio_path, y_resampled, 16000)
26
 
27
- command = f"""'.\\Whisper_CPP_ASR_CLI\\whisper_blas_bin_v1_3_0\\main.exe' -m '.\\Whisper_CPP_ASR_CLI\\whisper_blas_bin_v1_3_0\\models\\ggml-model-whisper-small.en.bin' -osrt -f '{temp_audio_path}' -nt"""
28
 
29
  start_time = time.time()
30
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
 
24
  temp_audio_path = temp_audio.name
25
  sf.write(temp_audio_path, y_resampled, 16000)
26
 
27
+ command = rf"""'.\\Whisper_CPP_ASR_CLI\\whisper_blas_bin_v1_3_0\\main.exe' -m '.\\Whisper_CPP_ASR_CLI\\whisper_blas_bin_v1_3_0\\models\\ggml-model-whisper-small.en.bin' -osrt -f '{temp_audio_path}' -nt"""
28
 
29
  start_time = time.time()
30
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)