Plachta commited on
Commit
43bc05b
β€’
1 Parent(s): 27d8ede

Update webui.py

Browse files
Files changed (1) hide show
  1. webui.py +1 -1
webui.py CHANGED
@@ -47,7 +47,7 @@ def preprocess_audio(audio_path, sr=24000):
47
  # if audio has two channels, take the first one
48
  if len(audio.shape) > 1:
49
  audio = audio[0]
50
- audio = audio[:sr * 30] # crop only the first 30 seconds
51
  return torch.tensor(audio).unsqueeze(0).float().to(device)
52
 
53
 
 
47
  # if audio has two channels, take the first one
48
  if len(audio.shape) > 1:
49
  audio = audio[0]
50
+ audio = audio[:sr * 180] # crop only the first 180 seconds
51
  return torch.tensor(audio).unsqueeze(0).float().to(device)
52
 
53