BALAKA commited on
Commit
71e2ad7
·
1 Parent(s): de8c808

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'/content/split_{i+1}.mp3'
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)