Spaces:
Runtime error
Runtime error
Harveenchadha
commited on
Commit
•
6c461f0
1
Parent(s):
db99e54
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def read_file(wav):
|
|
22 |
|
23 |
|
24 |
def parse_transcription(wav_file):
|
25 |
-
filename = wav_file.
|
26 |
-
convert(wav_file
|
27 |
speech, _ = sf.read(filename + "16k.wav")
|
28 |
|
29 |
|
|
|
22 |
|
23 |
|
24 |
def parse_transcription(wav_file):
|
25 |
+
filename = wav_file.split('.')[0]
|
26 |
+
convert(wav_file, filename + "16k.wav")
|
27 |
speech, _ = sf.read(filename + "16k.wav")
|
28 |
|
29 |
|