GreenRaptor commited on
Commit
9e43625
1 Parent(s): 3ece66a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
 
1
  from transformers import AutoProcessor, AutoModelForPreTraining
2
 
3
  processor = AutoProcessor.from_pretrained("patrickvonplaten/mms-1b")
4
 
5
  model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/mms-1b")
6
 
7
- cd /path/to/fairseq-py/
8
- python examples/mms/asr/infer/mms_infer.py --model "/path/to/asr/model" --lang lang_code --audio "/path/to/audio_1.wav" "/path/to/audio_1.wav"
 
1
+ from subprocess import Popen
2
  from transformers import AutoProcessor, AutoModelForPreTraining
3
 
4
  processor = AutoProcessor.from_pretrained("patrickvonplaten/mms-1b")
5
 
6
  model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/mms-1b")
7
 
8
+ Popen('python mms_infer.py --model "/path/to/asr/model" --lang lang_code --audio "/path/to/audio_1.wav" "/path/to/audio_1.wav"')