Spaces:
Runtime error
Runtime error
Commit
·
8becdbe
1
Parent(s):
e5bbd8f
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,14 @@ def dem(audio):
|
|
| 9 |
print(f"Speech rate:{sr} and audio : {y}")
|
| 10 |
command = r"""wine './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 |
|
|
|
|
| 9 |
print(f"Speech rate:{sr} and audio : {y}")
|
| 10 |
command = r"""wine './whisper_blas_bin_v1_3_0/main.exe' -h"""
|
| 11 |
command2 = """chmod +777 ./whisper_blas_bin_v1_3_0/main.exe"""
|
| 12 |
+
wine_command = """sudo apt-get install wine"""
|
| 13 |
+
wine_c = subprocess.run(wine_command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
|
| 14 |
perm = subprocess.run(command2, shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, text=True)
|
| 15 |
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 16 |
print("Output: \n",result.stdout)
|
| 17 |
print("Error: \n",result.stderr)
|
| 18 |
print("permission :",perm)
|
| 19 |
+
print("Wine :",wine_c)
|
| 20 |
return audio,result.stdout,result.stderr
|
| 21 |
|
| 22 |
|