Spaces:
Running
Running
new example
Browse files
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 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
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 |
|