kalebu commited on
Commit
6aeb8a3
1 Parent(s): edd5b4f

tf.io.read_file --> tf.read_file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ from tensorflow.keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D,
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)
20
  return waveform
 
14
 
15
  def get_waveform_label(file):
16
  #lab = tf.strings.split(file, os.path.sep)[-2]
17
+ audio_binary = tf.read_file(file)
18
  audio, _ = tf.audio.decode_wav(audio_binary)
19
  waveform=tf.squeeze(audio, axis=-1)
20
  return waveform