Spaces:
Runtime error
Runtime error
GreenRaptor
commited on
Commit
•
3ece66a
1
Parent(s):
858f8a3
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +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"
|