Spaces:
Sleeping
Sleeping
commented unused preprocessing code
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ def greet(name):
|
|
34 |
# # add noise to audio to simulate environment
|
35 |
# noise = np.random.normal(0, noise_power ** 0.5, wave.shape) # generate noise
|
36 |
# wave = (wave + noise) * 32768.0 # add noise to the audio signal
|
37 |
-
tensor_wave = tf.convert_to_tensor(wave, dtype=tf.float32) # convert to tensor
|
38 |
-
min_wave = min(wave)
|
39 |
if len(wave) > 16000:
|
40 |
sequence_stride = 16000
|
41 |
else:
|
|
|
34 |
# # add noise to audio to simulate environment
|
35 |
# noise = np.random.normal(0, noise_power ** 0.5, wave.shape) # generate noise
|
36 |
# wave = (wave + noise) * 32768.0 # add noise to the audio signal
|
37 |
+
# tensor_wave = tf.convert_to_tensor(wave, dtype=tf.float32) # convert to tensor
|
38 |
+
# min_wave = min(wave)
|
39 |
if len(wave) > 16000:
|
40 |
sequence_stride = 16000
|
41 |
else:
|