Add-Vishnu commited on
Commit
01916a1
·
1 Parent(s): 1983345

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -26,13 +26,14 @@ def transcribe(audio):
26
 
27
 
28
  # command = r"""wine './whisper_blas_bin_v1_3_0/main.exe' -h"""
29
- wine_command = """sudo apt-get install wine"""
30
  command2 = """chmod +777 ./whisper_blas_bin_v1_3_0/main.exe"""
31
- wine_c = subprocess.run(wine_command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
32
  perm = subprocess.run(command2, shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
33
  # result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
34
  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"""
35
- print("Wine Installation: ",wine_c)
 
36
  start_time = time.time()
37
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
38
  end_time = time.time()
 
26
 
27
 
28
  # command = r"""wine './whisper_blas_bin_v1_3_0/main.exe' -h"""
29
+ # wine_command = """sudo apt-get install wine"""
30
  command2 = """chmod +777 ./whisper_blas_bin_v1_3_0/main.exe"""
31
+ # wine_c = subprocess.run(wine_command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
32
  perm = subprocess.run(command2, shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
33
  # result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
34
  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"""
35
+ # print("Wine Installation: ",wine_c)
36
+ print("Access Installation: ",perm)
37
  start_time = time.time()
38
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
39
  end_time = time.time()