Ahsen Khaliq commited on
Commit
79cbc59
1 Parent(s): 346ecca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -10,19 +10,6 @@ import librosa
10
  import matplotlib.pyplot as plt
11
  import gradio as gr
12
 
13
- import sys
14
- from subprocess import call
15
-
16
- def run_cmd(command):
17
- try:
18
- print(command)
19
- call(command, shell=True)
20
- except KeyboardInterrupt:
21
- print("Process interrupted")
22
- sys.exit(1)
23
- run_cmd("pip install gradio>=2.2.13")
24
- run_cmd("pip freeze")
25
-
26
  lang = 'multilingual'
27
  fs = 16000
28
  tag = 'ftshijt/open_li52_asr_train_asr_raw_bpe7000_valid.acc.ave_10best'
@@ -60,6 +47,6 @@ article = "<p style='text-align: center'><a href='https://espnet.github.io/espne
60
  examples = [
61
  ["poem.wav"]
62
  ]
63
- gr.Interface(inference, inputs, outputs, title=title, description=description, article=article,examples=examples, enable_queue=True).launch()
64
 
65
 
 
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'
 
47
  examples = [
48
  ["poem.wav"]
49
  ]
50
+ gr.Interface(inference, inputs, outputs, title=title, description=description, article=article,examples=examples).launch()
51
 
52