Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from tensorflow.keras.models import Sequential
|
|
| 13 |
from tensorflow.keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D, BatchNormalization, Input
|
| 14 |
|
| 15 |
def get_waveform_label(file):
|
| 16 |
-
lab = tf.strings.split(file, os.path.sep)[-2]
|
| 17 |
audio_binary = tf.io.read_file(file)
|
| 18 |
audio, _ = tf.audio.decode_wav(audio_binary)
|
| 19 |
waveform=tf.squeeze(audio, axis=-1)
|
|
|
|
| 13 |
from tensorflow.keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D, BatchNormalization, Input
|
| 14 |
|
| 15 |
def get_waveform_label(file):
|
| 16 |
+
#lab = tf.strings.split(file, os.path.sep)[-2]
|
| 17 |
audio_binary = tf.io.read_file(file)
|
| 18 |
audio, _ = tf.audio.decode_wav(audio_binary)
|
| 19 |
waveform=tf.squeeze(audio, axis=-1)
|