yangwang825 commited on
Commit
41ff167
·
1 Parent(s): ee4b339

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -2
README.md CHANGED
@@ -30,8 +30,13 @@ mert = AutoModelForAudioClassification.from_pretrained(
30
  trust_remote_code=True
31
  )
32
 
33
- # Simulate a list of waveforms
34
- audio_arrays = [np.random.rand(16000, ) for _ in range(batch_size)]
 
 
 
 
 
35
  inputs = feature_extractor(
36
  audio_arrays, # List of waveforms in numpy array format
37
  sampling_rate=feature_extractor.sampling_rate,
 
30
  trust_remote_code=True
31
  )
32
 
33
+ # Simulate a list of waveforms (e.g. four audio clips)
34
+ audio_arrays = [
35
+ np.random.rand(16000, ),
36
+ np.random.rand(24000, ),
37
+ np.random.rand(22050, ),
38
+ np.random.rand(44100, )
39
+ ]
40
  inputs = feature_extractor(
41
  audio_arrays, # List of waveforms in numpy array format
42
  sampling_rate=feature_extractor.sampling_rate,