OpenSound commited on
Commit
81334b7
·
verified ·
1 Parent(s): f981427

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def editing_audio(text, boundary,
124
  output_audio = gt.copy()
125
 
126
  gt = torch.tensor(gt).unsqueeze(0).unsqueeze(1).to(device)
127
- boundary = min((max_length - (mask_end - mask_start))/2, mask_end - mask_start, boundary)
128
  # print(boundary)
129
 
130
  # Calculate start and end indices
 
124
  output_audio = gt.copy()
125
 
126
  gt = torch.tensor(gt).unsqueeze(0).unsqueeze(1).to(device)
127
+ boundary = min(mask_end - mask_start, boundary)
128
  # print(boundary)
129
 
130
  # Calculate start and end indices