Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ def _fn(path, solver, nfe, tau, denoising, unlimited):
|
|
19 |
return None, None
|
20 |
|
21 |
info = torchaudio.info(path)
|
22 |
-
if not unlimited and (info.num_frames / info.sample_rate >
|
23 |
-
gr.Warning("Only audio files shorter than
|
24 |
return None, None
|
25 |
|
26 |
solver = solver.lower()
|
|
|
19 |
return None, None
|
20 |
|
21 |
info = torchaudio.info(path)
|
22 |
+
if not unlimited and (info.num_frames / info.sample_rate > 1000):
|
23 |
+
gr.Warning("Only audio files shorter than 1000 seconds are supported.")
|
24 |
return None, None
|
25 |
|
26 |
solver = solver.lower()
|