Spaces:
Runtime error
Runtime error
Commit
·
b13d1db
1
Parent(s):
98a4a8a
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,8 @@ def transcribe(audio):
|
|
35 |
|
36 |
|
37 |
|
38 |
-
command = rf"""wine './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"""
|
|
|
39 |
|
40 |
start_time = time.time()
|
41 |
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
|
|
35 |
|
36 |
|
37 |
|
38 |
+
# command = rf"""wine './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""" # English only
|
39 |
+
command = rf"""wine './whisper_blas_bin_v1_3_0/main.exe' -m './whisper_blas_bin_v1_3_0/models/ggml-model-whisper-base.bin' -osrt -f '{temp_audio_path}' -nt""" # Multilingual
|
40 |
|
41 |
start_time = time.time()
|
42 |
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|