Spaces:
Runtime error
Runtime error
Commit ·
7ab5ed2
1
Parent(s): b92426e
Update app.py
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 = rf"""'./
|
| 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_blas_bin_v1_3_0/main.exe' -m './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)
|