Spaces:
Build error
Build error
Jeremy Hummel
commited on
Commit
·
fd93546
1
Parent(s):
e8f3f23
fixes duration
Browse files- visualize.py +0 -6
visualize.py
CHANGED
@@ -48,12 +48,6 @@ def visualize(audio_file,
|
|
48 |
print(audio.dtype)
|
49 |
print(audio.shape)
|
50 |
|
51 |
-
if audio.shape[0] / target_sr < duration:
|
52 |
-
duration = None
|
53 |
-
else:
|
54 |
-
frames = duration * sr
|
55 |
-
audio = audio[:frames]
|
56 |
-
|
57 |
|
58 |
# TODO:
|
59 |
batch_size = 1
|
|
|
48 |
print(audio.dtype)
|
49 |
print(audio.shape)
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
# TODO:
|
53 |
batch_size = 1
|