Spaces:
Sleeping
Sleeping
theekshana
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,10 @@ def _fn(path, solver, nfe, tau, denoising, unlimited):
|
|
19 |
return None, None
|
20 |
|
21 |
info = torchaudio.info(path)
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
|
26 |
solver = solver.lower()
|
27 |
nfe = int(nfe)
|
|
|
19 |
return None, None
|
20 |
|
21 |
info = torchaudio.info(path)
|
22 |
+
# uncomment to limit to only audio files shorter than 60 seconds.
|
23 |
+
# if not unlimited and (info.num_frames / info.sample_rate > 60):
|
24 |
+
# gr.Warning("Only audio files shorter than 60 seconds are supported.")
|
25 |
+
# return None, None
|
26 |
|
27 |
solver = solver.lower()
|
28 |
nfe = int(nfe)
|