MMS / app.py
GreenRaptor's picture
Update app.py
9e43625
raw
history blame
368 Bytes
from subprocess import Popen
from transformers import AutoProcessor, AutoModelForPreTraining
processor = AutoProcessor.from_pretrained("patrickvonplaten/mms-1b")
model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/mms-1b")
Popen('python mms_infer.py --model "/path/to/asr/model" --lang lang_code --audio "/path/to/audio_1.wav" "/path/to/audio_1.wav"')