Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def tran_script(file_path):
|
|
54 |
now_path = glob('/home/user/app/split_*.mp3')
|
55 |
sentence = []
|
56 |
for i in range(file_path - 1):
|
57 |
-
now_path = f'/
|
58 |
speech = resample(now_path)
|
59 |
inputs = processor(speech, sampling_rate=16_000,
|
60 |
return_tensors="pt", padding=True)
|
|
|
54 |
now_path = glob('/home/user/app/split_*.mp3')
|
55 |
sentence = []
|
56 |
for i in range(file_path - 1):
|
57 |
+
now_path = f'/home/user/app/split_{i+1}.mp3'
|
58 |
speech = resample(now_path)
|
59 |
inputs = processor(speech, sampling_rate=16_000,
|
60 |
return_tensors="pt", padding=True)
|