jlvdoorn commited on
Commit
fac5461
1 Parent(s): 4394863

Disabled Examples

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,8 +10,8 @@ login(token=os.environ['hf_token'])
10
  atco2 = load_dataset('jlvdoorn/atco2-asr', split='validation')
11
  atcosim = load_dataset('jlvdoorn/atcosim', split='validation')
12
 
13
- examples = [atco2[0]['audio']['array'], atcosim[0]['audio']['array'], atco2[1]['audio']['array'], atcosim[1]['audio']['array'], atco2[2]['audio']['array'], atcosim[2]['audio']['array']]
14
- examples_labels = ['Example ' + str(i+1) for i in range(len(examples))]
15
 
16
  bert_atco_ner = pipeline(model='Jzuluaga/bert-base-ner-atc-en-atco2-1h')
17
 
@@ -75,7 +75,7 @@ iface = gr.Interface(
75
  outputs=[gr.Text(label='Transcription'), gr.Text(label='Callsigns, commands and values')],
76
  title='Whisper ATC - Large v3',
77
  description='Transcribe and extract',
78
- examples = examples,
79
  )
80
 
81
  #%%
 
10
  atco2 = load_dataset('jlvdoorn/atco2-asr', split='validation')
11
  atcosim = load_dataset('jlvdoorn/atcosim', split='validation')
12
 
13
+ # examples = [atco2[0]['audio']['array'], atcosim[0]['audio']['array'], atco2[1]['audio']['array'], atcosim[1]['audio']['array'], atco2[2]['audio']['array'], atcosim[2]['audio']['array']]
14
+ # examples_labels = ['Example ' + str(i+1) for i in range(len(examples))]
15
 
16
  bert_atco_ner = pipeline(model='Jzuluaga/bert-base-ner-atc-en-atco2-1h')
17
 
 
75
  outputs=[gr.Text(label='Transcription'), gr.Text(label='Callsigns, commands and values')],
76
  title='Whisper ATC - Large v3',
77
  description='Transcribe and extract',
78
+ # examples = examples,
79
  )
80
 
81
  #%%