jaekookang commited on
Commit
e016491
1 Parent(s): da93e93
Files changed (3) hide show
  1. .gitignore +1 -0
  2. gradio_asr_en_libri100.py +9 -4
  3. requirements.txt +2 -1
.gitignore CHANGED
@@ -4,5 +4,6 @@ __pycache__
4
  *.db
5
  *.nohup
6
  .vscode
 
7
  keyble_ssl/*
8
  README_github.md
 
4
  *.db
5
  *.nohup
6
  .vscode
7
+ model/*
8
  keyble_ssl/*
9
  README_github.md
gradio_asr_en_libri100.py CHANGED
@@ -1,8 +1,12 @@
1
  '''Librispeech 100h English ASR demo
2
 
3
- @ML2
4
 
5
  2022-02-11
 
 
 
 
6
  '''
7
 
8
  import os
@@ -24,7 +28,8 @@ SERVER_PORT = 42208
24
  SERVER_NAME = "0.0.0.0"
25
 
26
  SSL_DIR = './keyble_ssl'
27
- MODEL_DIR = '/home/jkang/HDD4T/jkang/huggingface'
 
28
 
29
  EXAMPLE_DIR = './examples'
30
  examples = sorted(glob(os.path.join(EXAMPLE_DIR, '*.wav')))
@@ -69,8 +74,8 @@ iface = gr.Interface(
69
  if __name__ == '__main__':
70
  try:
71
  iface.launch(debug=True,
72
- server_name=SERVER_NAME,
73
- server_port=SERVER_PORT,
74
  enable_queue=True,
75
  # ssl_keyfile=SSL_DIR,
76
  # ssl_certfile=SSL_DIR
 
1
  '''Librispeech 100h English ASR demo
2
 
3
+ @ML2 --> @HuggingFace
4
 
5
  2022-02-11
6
+ 2022-02-16
7
+ - changed to HF
8
+ - server setting commented
9
+ - model cache dir commented
10
  '''
11
 
12
  import os
 
28
  SERVER_NAME = "0.0.0.0"
29
 
30
  SSL_DIR = './keyble_ssl'
31
+ # MODEL_DIR = '/home/jkang/HDD4T/jkang/huggingface'
32
+ MODEL_DIR = './model'
33
 
34
  EXAMPLE_DIR = './examples'
35
  examples = sorted(glob(os.path.join(EXAMPLE_DIR, '*.wav')))
 
74
  if __name__ == '__main__':
75
  try:
76
  iface.launch(debug=True,
77
+ # server_name=SERVER_NAME,
78
+ # server_port=SERVER_PORT,
79
  enable_queue=True,
80
  # ssl_keyfile=SSL_DIR,
81
  # ssl_certfile=SSL_DIR
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  espnet_model_zoo==0.1.7
2
  gradio==2.7.5.2
3
  loguru==0.6.0
4
- soundfile
 
 
1
  espnet_model_zoo==0.1.7
2
  gradio==2.7.5.2
3
  loguru==0.6.0
4
+ soundfile
5
+ librosa