OpenSound commited on
Commit
c9ff7f9
1 Parent(s): 81334b7

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(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)/2, boundary)
128
  # print(boundary)
129
 
130
  # Calculate start and end indices