jlvdoorn commited on
Commit
ff9e4fc
1 Parent(s): 942a9ec

new example

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,10 +12,10 @@ examples_atco2 = [[atco2[i]['audio']['array'].tobytes()] for i in range(num_ex
12
  #examples_atcosim = [ [{'sampling_rate': atcosim[i]['audio']['sampling_rate'], 'raw': atcosim[i]['audio']['array']}, False, 'large-v3'] for i in range(num_examples)]
13
  examples = examples_atco2 #+ examples_atcosim
14
 
15
- # sr, y = atco2[0]['audio']['sampling_rate'], atco2[0]['audio']['array']
16
- # y = y.astype(np.float32)
17
- # y /= np.max(np.abs(y))
18
- # examples = [[y]]
19
 
20
  whisper = pipeline(model='jlvdoorn/whisper-large-v3-atco2-asr-atcosim')
21
 
 
12
  #examples_atcosim = [ [{'sampling_rate': atcosim[i]['audio']['sampling_rate'], 'raw': atcosim[i]['audio']['array']}, False, 'large-v3'] for i in range(num_examples)]
13
  examples = examples_atco2 #+ examples_atcosim
14
 
15
+ sr, y = atco2[0]['audio']['sampling_rate'], atco2[0]['audio']['array']
16
+ y = y.astype(np.float32).tobytes()
17
+ y /= np.max(np.abs(y))
18
+ examples = [[y]]
19
 
20
  whisper = pipeline(model='jlvdoorn/whisper-large-v3-atco2-asr-atcosim')
21