Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|