Add-Vishnu commited on
Commit
25b6136
·
1 Parent(s): b652a3a

Added permission to the file

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,9 +8,12 @@ def dem(audio):
8
  sr,y = audio
9
  print(f"Speech rate:{sr} and audio : {y}")
10
  command = r"""'./whisper_blas_bin_v1_3_0/main.exe' -h"""
 
 
11
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
12
  print("Output: \n",result.stdout)
13
  print("Error: \n",result.stderr)
 
14
  return audio,result.stdout,result.stderr
15
 
16
 
 
8
  sr,y = audio
9
  print(f"Speech rate:{sr} and audio : {y}")
10
  command = r"""'./whisper_blas_bin_v1_3_0/main.exe' -h"""
11
+ command2 = """chmod +777 ./whisper_blas_bin_v1_3_0/main.exe"""
12
+ perm = subprocess.run(command2, shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
13
  result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
14
  print("Output: \n",result.stdout)
15
  print("Error: \n",result.stderr)
16
+ print("permission :",perm)
17
  return audio,result.stdout,result.stderr
18
 
19