Ahsen Khaliq commited on
Commit
3f53296
1 Parent(s): 4ff594d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -10,6 +10,9 @@ import librosa.display
10
  import matplotlib.pyplot as plt
11
  import gradio as gr
12
 
 
 
 
13
  lang = 'multilingual'
14
  fs = 16000
15
  tag = 'ftshijt/open_li52_asr_train_asr_raw_bpe7000_valid.acc.ave_10best'
@@ -44,7 +47,9 @@ title = "wav2vec 2.0"
44
  description = "Gradio demo for Real-time ASR with ESPnet2. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
45
  article = "<p style='text-align: center'><a href='https://espnet.github.io/espnet/'>ESPnet: end-to-end speech processing toolkit</a> | <a href='https://github.com/espnet/espnet'>Github Repo</a></p>"
46
 
47
-
48
- gr.Interface(inference, inputs, outputs, title=title, description=description, article=article).launch()
 
 
49
 
50
 
 
10
  import matplotlib.pyplot as plt
11
  import gradio as gr
12
 
13
+ import wget
14
+ url = 'https://github.com/AK391/fairseq/blob/master/poem.wav'
15
+ wget.download(url)
16
  lang = 'multilingual'
17
  fs = 16000
18
  tag = 'ftshijt/open_li52_asr_train_asr_raw_bpe7000_valid.acc.ave_10best'
 
47
  description = "Gradio demo for Real-time ASR with ESPnet2. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
48
  article = "<p style='text-align: center'><a href='https://espnet.github.io/espnet/'>ESPnet: end-to-end speech processing toolkit</a> | <a href='https://github.com/espnet/espnet'>Github Repo</a></p>"
49
 
50
+ examples = [
51
+ ["poem.wav"]
52
+ ]
53
+ gr.Interface(inference, inputs, outputs, title=title, description=description, article=article,examples=examples).launch()
54
 
55