SheldonYC commited on
Commit
a6a79a1
1 Parent(s): 78d4870

Initial ASR commit

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import nemo.collections.asr as nemo_asr
2
  from transformers import pipeline
3
  import numpy as np
@@ -26,8 +29,7 @@ with gr.Blocks() as demo:
26
  """
27
  # HKU Canteen VA
28
  """)
29
- gr.Markdown(
30
- f"{text}")
31
  va = gr.Chatbot(container=False)
32
 
33
  with gr.Row(): # text input
 
1
+ import os
2
+ os.system("pip install nemo_toolkit['all']")
3
+
4
  import nemo.collections.asr as nemo_asr
5
  from transformers import pipeline
6
  import numpy as np
 
29
  """
30
  # HKU Canteen VA
31
  """)
32
+ gr.Markdown(f"{text}")
 
33
  va = gr.Chatbot(container=False)
34
 
35
  with gr.Row(): # text input
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
  torch
2
  transformers
3
- nemo_toolkit['all']
4
  numpy
 
1
  torch
2
  transformers
 
3
  numpy