GreenRaptor commited on
Commit
75cb74f
1 Parent(s): 38f78d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,9 +1,11 @@
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
  def transcribe(audio):
9
  Popen('python mms_infer.py --model model --lang eng --audio audio')
 
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
+ model = "https://dl.fbaipublicfiles.com/mms/pretraining/base_300m.pt"
9
 
10
  def transcribe(audio):
11
  Popen('python mms_infer.py --model model --lang eng --audio audio')