Spaces:
Runtime error
Runtime error
Commit
·
58638e3
1
Parent(s):
e5fb66e
Updated Model and main.exe path
Browse files
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"""main.exe -m '
|
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 = 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)
|